Subject: [bug#41539] [PATCH 1/2] size: Document that positional arguments can be store items.

From: Ludovic Courtès <[email-masked]>
Date: Fri, 29 May 2020 12:09:51 +0200

Hi,

zimoun <[email-masked]> skribis:

> On Fri, 29 May 2020 at 11:26, Pierre Neidhardt <[email-masked]> wrote:
>
>> >> +@example
>> >> +guix size $(guix system build config.scm)
>> >
>> > Please use backquotes instead of $(…), which is Bash-specific.
>>
>> Actually, it's not, $(...) is POSIX (you can test with Dash).
>> Backquotes are deprecated and have the downside of not nesting.
>
> Yes, $(...) is POSIX, AFAIK.
> And let quote what POSIX says: "Because of these inconsistent
> behaviors, the backquoted variety of command substitution is not
> recommended for new applications that nest command substitutions or
> attempt to embed complex scripts."
>
> https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html#tag_23_02_06_03

I stand corrected!  That’s news to me, but definitely good news.
I’m all for using $(…) from now on.

Thank you!

Ludo’.