Randall A Sindlinger on 21 Apr 2010 06:28:33 -0700


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

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 :-)

-Randall

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         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug