
5 Jun
2013
5 Jun
'13
2:10 a.m.
Jason White <jason@jasonjgw.net> writes:
You could use the officially deprecated but ubiquitous `...` syntax rather than $(...) if you prefer.
Citation needed. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag... ...doesn't mention deprecation (at least, I can't spot it). I agree it's a bloody stupid thing to do, when $() has been around for so long. greybot> The backquote (`) is used in the old-style command greybot> substitution, e.g. foo=`command`. The foo=$(command) syntax is greybot> recommended instead. Backslash handling inside $() is less greybot> surprising, and $() is easier to nest. See greybot> http://mywiki.wooledge.org/BashFAQ/082