[CentOS-docs] Contribute request
R P Herrold
herrold at centos.org
Tue May 12 17:33:49 UTC 2009
On Tue, 12 May 2009, William L. Maltby wrote:
>
> On Tue, 2009-05-12 at 11:42 -0400, R P Herrold wrote:
>>> For widest possible coverage, something like bash should be considered.
>> curious -- when coding under that criterion, I end up at:
>> /bin/sh
>> in my script's shebang ;)
> lrwxrwxrwx 1 root root 4 Apr 1 17:17 /bin/sh -> bash
>
> As it should be.
The use of a link is not a statement that /bin/sh behaves as
bash; the interpreter notes how it was called, and acts to
the shell dialect restrictions chosen by how it is invoked.
-- Russ herrold
More information about the CentOS-docs
mailing list