Possible Duplicate:
Shell Programming: What's the difference between $(command) andcommand
It seems there is no difference between
$()
and
``
For example,
$(date)
is the same as
`date`
Any suggestion ?
Possible Duplicate:
Shell Programming: What's the difference between $(command) andcommand
It seems there is no difference between
$()
and
``
For example,
$(date)
is the same as
`date`
Any suggestion ?
What's the difference between man
command and stackoverflow.com
? :)
When the old-style backquote form of substitution is used, backslash retains its literal meaning except when followed by $, `, or \. The first backquote not preceded by a backslash terminates the command substitution. When using the $(command) form, all characters between the parentheses make up the command; none are treated specially.
so, if you put date
inside, it's more or less the same.