SA Scoring
    Matt Kettler 
    mkettler at evi-inc.com
       
    Wed May 17 23:27:51 IST 2006
    
    
  
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."
    
    
More information about the MailScanner
mailing list