Re: [arch-general] A good time to switch to dash as /bin/sh?

2014-09-27 Thread Benjamin A. Shelton
On 09/26/2014 05:11 PM, Doug Newgard wrote: I should qualify that in that I don't think adding another package to base is a good idea *unless* there is a significant benefit to doing so. The plan to add dash to base when Arch was using initscripts made sense, it doesn't now that we're using

Re: [arch-general] A good time to switch to dash as /bin/sh?

2014-09-27 Thread Benjamin A. Shelton
On 09/27/2014 01:04 AM, Florian Pelz wrote: Regardless of what's the default, could there be a cleaner way to use dash as one's /bin/sh without preventing pacman from upgrading bash? Manually replace /bin/sh as a symlink to /bin/dash and then set the /etc/pacman.conf values: NoUpgrade =

Re: [arch-general] A good time to switch to dash as /bin/sh?

2014-09-27 Thread Benjamin A. Shelton
On 09/27/2014 01:28 AM, Ralf Mardorf wrote: On Sat, 2014-09-27 at 01:21 -0600, Benjamin A. Shelton wrote: I assumed NoExtract should have been enough Correct! Or are we missing something? Oddly, using only NoExtract caused pacman to remove the usr/bin/sh symlink, replacing it with nothing

Re: [arch-general] A good time to switch to dash as /bin/sh?

2014-09-27 Thread Benjamin A. Shelton
On 09/26/2014 02:57 PM, Doug Newgard wrote: You're wanting it to hide functionality in certain circumstances, which isn't wrong, but it isn't required. One way is not more correct than the other. I think not doing stupid things with env vars qualifies as more correct. Smaller code bases can

Re: [arch-general] [Bulk] Re: A good time to switch to dash as /bin/sh?

2014-09-27 Thread Benjamin A. Shelton
On 09/27/2014 02:13 AM, Ralf Mardorf wrote: On Sat, 2014-09-27 at 10:02 +0200, Florian Pelz wrote: Same here. With only NoExtract, I linked /bin/sh to dash, reinstalled bash, and /bin/sh was gone. With both NoExtract and NoUpgrade, I did the same and /bin/sh was still a link to dash. My bad,

Re: [arch-general] A good time to switch to dash as /bin/sh?

2014-09-26 Thread Benjamin A. Shelton
On 09/26/2014 10:16 AM, Leonid Isaev wrote: The bugs which started this discussion are not a big deal anyway. They will only affect scripts that don't properly sanitize the input. Such scripts have bigger problems to worry about IMHO. The SSH-related issue is also insignificant because the bug

Re: [arch-general] A good time to switch to dash as /bin/sh?

2014-09-26 Thread Benjamin A. Shelton
sites (HN, probably Slashdot, among others). It isn't difficult to find, if you're willing to look, but you do have to sort through the cruft and the sky is falling paranoia. @Benjamin A. Shelton: What do you mean you'd support it for correctness? Bash is POSIX compliant, anything that uses