[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Which is preferred? '`' or '$('?
From: |
Chris Down |
Subject: |
Re: [Help-bash] Which is preferred? '`' or '$('? |
Date: |
Tue, 12 Mar 2013 10:06:33 +0800 |
On 12 March 2013 08:59, Peng Yu <address@hidden> wrote:
> Hi,
>
> It seems that $( is a more recent form as it is mentioned in the
> manual "When the old-style backquote form of substitution is used
> ...". Since these two forms, to a certain extend, are the same and $(
> is introduced later, is $( preferred?
>
> --
> Regards,
> Peng
>
$( is much easier to nest, as Clark said, that's its main advantage.
It's also POSIX, so you shouldn't really worry too much when using it
if you have portability in mind.
Chris