Mailing List Archive


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

Re: [tlug] Bashing away at Unix



SL Baur writes:
 > On 3/14/08, Nguyen Vu Hung <vuhung16plus+shape@example.com> wrote:
 > > 2008/3/14, Stephen J. Turnbull <stephen@example.com>:
 > >  >  Note the "under certain conditions".  For example, if as root you do
 > >  >
 > >  >  ln -s /bin/bash ~/sh
 > >  >  ~/sh
 > >  >
 > >  >  I'll bet you bash reads .profile, and you can verify it with strace,
 > >  >  too.
 > 
 > Yes.  When zsh is invoked as sh, it turns off *all* zsh extensions and
 > behaves as a conformant POSIX shell.
 > 
 > > It didn't reproduce in CentOS release 5 (Final)
 > 
 > I'm not surprised.  Bash has never cared much for standards compliance
 > and bash scripts which assume /bin/sh is symlinked to bash have been
 > the bane of Linux for ages.

What's worse, if Vu Hung did the experiment correctly, bash v3.2
doesn't conform to its own documentation (I checked, first).  Or
possibly it wants argv[0] to be exactly "sh".



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links