On Fri, Jun 13, 2008 at 17:34:15 +0100 (+0100), Graham Bleach wrote:
> That should read:
> 
> #!/bin/bash
> 
> You can get away with your current incorrect line in bash, as it
> assumes that scripts without a proper shebang line are to be parsed by
> bash.
You should also "chmod +x" your script.  Again, you can sometimes get
away without it, but it's good to get into the habit. 
Since your script doesn't have any "bashisms" you should use
"#!/bin/sh". A bashism is code which only works in bash and isn't
"pure" shell script - e.g. "cp foo{,.old}.
Adrian
-- 
Email: adrian@???  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  
www.debian.org