bash question

John Chambers jc-8FIgwK2HfyJMuWfdjsoA/w at public.gmane.org
Sat Jan 3 23:31:48 EST 2009


Someone wrote:
| > Other distros (I know at least redhat-based ones) have sh as
| > just a symlink to bash, and don't do the 'strict sh' syntax
| > by default even if arg[0] is 'sh' instead of 'bash'.
|
| > So that .profile line might work on some linux systems and
| > not others.

On my ubuntu system here (heron), /bin/sh is a symlink to  /bin/dash,
for which there is a man page that starts off explaining that it is a
project to strictly implement the POSIX definition of sh.

It's a bit weird that you'd  get  /bin/sh  when  you  login,  if  the
/etc/passwd file has bash as your login shell.  Is this really what's
going on?  I'd think that the login program would run  your  declared
shell, but it sounds like this isn't true any more.


--
I ♡ Unicode





More information about the Discuss mailing list