View Single Post
Old Nov 18th, 2006, 3:01 AM   #6
free-zombie
Programmer
 
free-zombie's Avatar
 
Join Date: May 2006
Location: Bavaria, Germany
Posts: 50
Rep Power: 0 free-zombie is an unknown quantity at this point
Send a message via ICQ to free-zombie Send a message via MSN to free-zombie Send a message via Yahoo to free-zombie
you can create a script from any editor, so you could start an emacs from a csh or run an instance of SciTE on a remote computer and still write a bash script. 'bash' is the most commonly used shell, but 'sh' is the only one you can guarantee to exist - bash is fully compatible with any vanilla bourne sh.

The first line of a shell script, or any script (including python, perl, ruby...) tells the system how to run it if it begins with '#!' this means that
#!/bin/sh
tells the system that './script.sh' (if that's the script...) is equivalent to "/bin/sh ./script.sh" /
free-zombie is offline   Reply With Quote