a little script

Chris F.A. Johnson c.f.a.johnson-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Tue Jan 27 22:16:11 UTC 2004


On Tue, 27 Jan 2004, Lennart Sorensen wrote:

> On Tue, Jan 27, 2004 at 04:02:22PM -0500, Chris F.A. Johnson wrote:
> >     That depends on how it is run.
> >
> >     If run from the bash command line, or from another bash script, it
> >     will be executed by bash.
> >
> >     If run by at or cron (or pdksh), /bin/sh is used. Which in the
> >     case of linux, is still bash, but the startup files will not be
> >     read (see the INVOCATION section of the man page).
>
> /bin/sh MIGHT be bash on Linux.  Might as well be ash, dash or some
> other posix compliant shell.  And even when it is bash it doesn't behave
> like bash, it tries to behave more like plain sh.

    It enters posix mode rather than behave like "plain" sh.

    There's very little difference in how it behaves after startup
    files have been read.

-- 
	Chris F.A. Johnson
	=================================================================
	cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org                      http://cfaj.freeshell.org
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list