From: alfie@dcs.warwick.ac.uk (Nick Holloway) Subject: Re: Where is which? Date: 8 Jul 1992 09:46:48 GMT
In <1992Jul7.090302.378@klaava.Helsinki.FI> wirzeniu@klaava.Helsinki.FI (Lars Wirzenius) writes:
> Hamish.Macdonald@x400gate.bnr.ca (Hamish Macdonald) writes:
> >Remember folks, every symbolic link uses an extra directory entry, an
> >extra inode, and an extra disk block.
>
> mv /bin/bash /bin/sh
>
> Who needs /bin/bash anyway?
You need /bin/bash for bash to act like bash, and not pretend to be sh.
[I did try to look in bash.1 for this info, but couldn't find it there.
"Use the source Luke"]
bash/shell.c:
283 /* Here's a hack. If the name of this shell is "sh", then don't do
284 any startup files; just try to be more like /bin/sh. */
285 {
286 char *tshell_name = base_pathname (argv[0]);
287
288 if (*tshell_name == '-')
289 tshell_name++;
290
291 if (strcmp (tshell_name, "sh") == 0)
292 act_like_sh++;
293 }