On 10/8/07, Ben Scott <[EMAIL PROTECTED]> wrote:

>   Another tip about shell quoting: Prefer $( ... )  to `...`.  Both
> run a command and capture the output as an argument, but $( ... )
> nests automatically, while `...` can create nested quoting nightmares.


Some editors will hightlight/find the (...) where they won't find `...`
pairs as easily.

Make sure you start your script with #!/bin/bash or #!/bin/ksh.  $(...) does
not exist in Bourne shell so you shouldn't expect #!/bin/sh to have it.

On a similar note, why would you use [[...]] instead of [...] ?
_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to