[Bash Scripting] About redirecting an output

Matthew Flaschen matthew.flaschen at gatech.edu
Sun Feb 25 00:49:37 UTC 2007


Ouattara Oumar Aziz wrote:
> hi,
> 
> I have written a nautilus script

If you intend your script to specifically be a bash script, you should use:

#!/bin/bash

Someone just had an issue a while ago about that; their scripts stopped
working when sh changed from bash to dash.  It could change again, so
unless you're using POSIX-compliant sh specify which you want.

Matthew Flaschen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070224/6ebcd157/attachment.sig>


More information about the ubuntu-users mailing list