Backtick versus $()
andres.p at zoho.com
Thu Feb 24 20:21:49 UTC 2011
On Thu, Feb 24, 2011 at 3:36 PM, Thorsten Glaser <tg at mirbsd.org> wrote:
> Andres Perera <andres.p <at> zoho.com> writes:
>> > Nowadays all shells supports $() so I advise you to use it :).
>> no, not all shells support $()
> They do, it’s mandated by POSIX. There’s no reason to support the
> accidentally non-combining accent gravis (so-called “backtick”¹)
> any more, unless you specifically target Solaris 10 and below’s
> /bin/sh (which always had a ksh and /usr/xpg4/bin/sh which both
> are POSIX compatible), or, worse, the Bourne shell (you know, the
> one where you wrote ^ instead of | for pipes).
"mandated by posix" and reality usually aren't in sync, as i'm sure you know by
now since you pointed out solaris
More information about the freebsd-questions