![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bash and ksh: variable lost in loop in bash? | estienne | Shell Programming and Scripting | 2 | 08-25-2008 03:09 PM |
| passing variable from bash to perl from bash script | arsidh | Shell Programming and Scripting | 10 | 06-04-2008 01:25 PM |
| Why generate "ash and bash" different output for same bash script? | s. murat | Shell Programming and Scripting | 0 | 05-26-2008 08:19 AM |
| BASH on AIX | Eddie_The_Head | AIX | 3 | 02-16-2006 06:03 AM |
| bash | pressy | News, Links, Events and Announcements | 1 | 07-30-2004 11:09 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
bash vs. sh
Hi,
First of all, I am running Leopard on a Powerbook G4. I have written a shell script using bash syntax. However my shebang line is #!/bin/sh. I was under the impression that on a Mac OS, #!/bin/sh points to bash, but I have yet to receive a definitive answer on that. - However, my script works fine with #!/bin/sh as shebang. Is this because bash is just a newer version of sh, and I must not have included any code that is bash exclusive? - Should I expect to see any differences in the way my script runs if I change the shebang to #!/bin/bash? Mike |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|