just another question
IAN STEPHEN
ianstepn at shaw.ca
Sun Apr 26 09:38:41 PDT 2009
----- Original Message -----
From: vu pham <vu at sivell.com>
> Is there any difference between using a=$(command) and
> a=`command` ?
The $(command) way treats all characters inside the braces literally while the backticks way uses the backslash \ character to escape $, `, and \.
Nested substitutions are (I think) easier to read using $(command). Some older(?) shells don't allow use of $(command) so backticks may be more portable.
Cheers,
IanS
More information about the Linux-users
mailing list