Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2011 15:51:47 -0430
From:      Andres Perera <andres.p@zoho.com>
To:        Thorsten Glaser <tg@mirbsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Backtick versus $()
Message-ID:  <AANLkTinQ4MMwWq77k1t-SwqE%2BzPep6VCNS9AKdT_H08b@mail.gmail.com>
In-Reply-To: <loom.20110224T210222-768@post.gmane.org>
References:  <alpine.BSF.2.00.1102201027170.56885@wonkity.com> <4D61599E.4040008@gmail.com> <AANLkTinJKcy8NyFzW9=6yKEY%2BF_payQVM108_=B7Gyjr@mail.gmail.com> <loom.20110224T210222-768@post.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, Feb 24, 2011 at 3:36 PM, Thorsten Glaser <tg@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinQ4MMwWq77k1t-SwqE%2BzPep6VCNS9AKdT_H08b>