> Message: 13
> From: "Genfil Villahermosa" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Thu, 05 Dec 2002 10:11:28 +0800
> Subject: [plug] Bourne shell scripts
> Reply-To: [EMAIL PROTECTED]
> 
> Will there be a problem if I run Bourne Script under Bash?

One of the more annoying gotchas would be bash's 
usage of C shell style invocation of a shell script
if you want to execute commands that _affect the
current shell_, like say exporting shell variables.

Bash syntax:

source ./foobar.sh

Bourne shell syntax:

./foobar.sh

In a sense it could be seen as an improvement inspired
by the C shell because accdg. to Dido "it can help prevent 
polluting the variable space of a running shell script 
that invokes other shell scripts".

But it will definitely trip up the non-gurus
who don't have extensive experience with the many 
different shells and their idiosyncracies.

I'm pretty sure there more of these annoying and
frustrating incompatibility gotchas lurking around.


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to