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

Re: Implicit linking of local .so



Steve Baker wrote:

> > I am aware of the meaning of #!/bin/sh
> > What I meant was; doesn't the script _assume_ that /bin/sh is bash, by
> > using the keyword "export"? (Or is it Posix shell also?).
> 
> Oh - I see.  'export' is a Bourne-shell thing - so it's bound to
> be in the Posix spec.

What bash introduces over a plain Bourne shell in regard to exporting
variables is that bash allows something like this:

export FOO=bar

Where with a real sh, you need to do it this way:

FOO=bar
export FOO

-- 
Pierre Phaneuf
http://ludusdesign.com/