Re: A good time to switch to dash as /bin/sh?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Sep 26, 2014 at 6:54 AM, Ralf Mardorf
<ralf.mardorf@xxxxxxxxxxxxxx> wrote:
> On Fri, 2014-09-26 at 06:24 +0800, lolilolicon wrote:
>> Anything that has the #!/bin/sh line should be written in pure sh.
>> If you want bash, ask for bash.
>
> I absolutely agree with your statement and that is why I don't care
> about the sh link ;). IMO it's the useless link ever.

But you're missing the fact that /bin/sh is hardcoded in system calls,
such as system(3), popen(3).
So /bin/sh has to exist. The question is what should really be? My
answer is whatever is closest to what pure sh is supposed to be, thus
dash (definitely not bash).


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux