SA Scoring
Dhawal Doshy
dhawal at netmagicsolutions.com
Thu May 18 13:13:46 IST 2006
Matt Kettler wrote:
> Dhawal Doshy wrote:
>
>> Umm.. sh is bash, AFAIK no one uses the bourne shell (sh) in linux
>> anymore, everyone IS using bourne again shell (bash)
>> [dhawal at sauron ~]$ ll /bin/sh /bin/bash
>> -rwxr-xr-x 1 root root 616184 Feb 22 2005 /bin/bash
>> lrwxrwxrwx 1 root root 4 Jun 6 2005 /bin/sh -> bash
>
> Yes, but when bash is invoked as sh it changes its behavior to mimic the
> historic sh.
>
> So while everyone uses a symlink from sh to bash, that "sh" command behaves very
> differently than calling bash.
>
> See
> http://www.faqs.org/docs/bashman/bashref_63.html
>
> "If Bash is invoked with the name sh, it tries to mimic the startup behavior of
> historical versions of sh as closely as possible, while conforming to the POSIX
> standard as well."
True, i forgot this feature.. that too after spending hours some years
back linking bash as rbash (restricted bash)
- dhawal
More information about the MailScanner
mailing list