PS

Ordinary brackets $( )
================

$(command)

Takes the output of command and inserts it in the command line, similar, but subtly better than backticks.

eg

[EMAIL PROTECTED] ~ $ $(pwd)
bash: /home/nick: is a directory

bash sees the line $(pwd) as /home/nick and complains because there is no command /home/nick

[EMAIL PROTECTED] ~ $ `pwd`
bash: /home/nick: is a directory


backticks does the same, as I said there is some subtle difference, and $() is supposedly preferred, but don't ask me at this time of night to remember why. Again something to do with special characters I think.


curly brackets ${}
=============
${VARIABLE} produces the same as $VARIABLE, but treats special characters properly.

Reply via email to