Carl Johnson on 21 Apr 2010 06:33:50 -0700

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

Re: [PLUG] Shell scripting?

True. Some could argue that it's easier to clean up sh(**) than it is
to fix something after it's been bash(ed). ;-)

Sent from my Treo™ wireless handheld device.

-----Original Message-----
From: Randall A Sindlinger <>
Sent: Wednesday, April 21, 2010 9:28  AM
To: Philadelphia Linux User's Group Discussion List <>
Subject: Re: [PLUG] Shell scripting?

I realize this is the Philly *Linux* Users Group, but it still kind of
bothers me when I see #!/bin/sh

Granted, on linux #!/bin/sh is symlinked to bash, but if you try to
use the script on some unix variant, you're in for a very big
surprise.  /bin/sh and /bin/bash are *not* the same there.
So, it's just me, but I always prefer explicitly saying #!/bin/bash
on scripts I write.

I just felt compelled to point out the (somewhat historical at
this point) difference, 'cause it doesn't matter until it does :-)


On Wed, Apr 21, 2010 at 06:01:31AM -0700, Carl Johnson wrote:
> #!/bin/sh
> echo is anyone interested in shellscripting?
> echo choose y or n \c
> read wish
> echo
> if [$wish = "n"] ; then
> echo cool, you know this stuff then. bye
> exit
> if [$wish = "y"] ; then
> echo cool hope to see you at the meeting then. bye.
> exit
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --