From debbugs-submit-bounces@debbugs.gnu.org Fri May 29 05:57:04 2020 Received: (at 41539) by debbugs.gnu.org; 29 May 2020 09:57:05 +0000 Received: from localhost ([127.0.0.1]:53845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jebky-0003vq-Uy for submit@debbugs.gnu.org; Fri, 29 May 2020 05:57:04 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:44238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jebkt-0003vX-4l for 41539@debbugs.gnu.org; Fri, 29 May 2020 05:56:51 -0400 Received: by mail-qt1-f173.google.com with SMTP id c12so1389623qtq.11 for <41539@debbugs.gnu.org>; Fri, 29 May 2020 02:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Trnp3OBxKf1zgj89oSVajDIzTE92Czxw2I0B2mLk7Ek=; b=sK9HI9aCKTkH45t0x2fExH4CaVRqOPY2PJa4od+F4lzFXJs/Z1ukPlJs36n5kuLXIu JrPrtgpICsbbh6KVEE4uzw0+Mg1V7gGt9URsHUIowOcJBqsX1sKWIHDHFV4rTOd7DUAQ Gv0i2zPVKQKOq7ZdHhlmPSGa9jGMfzA3gbU8v2mKKIQN4pJ9yV+Iz8yUzrs9pBrNYRhF IF7IZMOrXBpfR+Nhq2n2jFQfCo7Yt9ORLEqvIJtEczjUnkB5EV6h07ZZiV8ZqaqhoYIF aLGHvowimrd8VwxUgti5RxG2kQV1DO6DxqlfuQbBm67mADVWzuUGVbNMSabguF3wg9G8 OAgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Trnp3OBxKf1zgj89oSVajDIzTE92Czxw2I0B2mLk7Ek=; b=Z4Fs7vqGQELQGd89Q89pKmmUQi9oGmXuGSabiQ4cVL3n8sHwueMk/6i0kGcPPTNMyX cKsg/9233i1YwKo7Ru1Htn6VAd3s6CDwtMxO4nr9itjjgWI7KHva2V5+pRDUGh9Y7Ar4 CwOmXrp8ECdLdFBFSC1avFCwAhe/SqBd/+b0t5xmZKIkVwaPoANJBEFF9n0TIb+O1eEw +h+uln7akFY1pRkqvKg3xxW84h/AETT0AZFWIz58EqtgRq+kMvMfrFXf0JkEodmO9xu6 czuKUuHRPOty9Srljm766iTe81kNOXxMw9+Pma1UegAYJr5g7Qb6jygmMHo/zo8w3GYB Vw6w== X-Gm-Message-State: AOAM532RNT864IR9thLPkoDcdUtQ3+p1mcLq9gfOcmh+iT1mAJZJq5kt wJ9uvd9rPAwCJTTLB80Nr+8sJ5PI+sLqEVh7yb0= X-Google-Smtp-Source: ABdhPJw+vIcTO3iFSi2ei4vOI+o61CF+PbAeW1DrtN50oUQoiaYilPEm7G3xXQlG/EFq0laKrNZuOEz2W4prHSepwY0= X-Received: by 2002:ac8:42c3:: with SMTP id g3mr1079515qtm.313.1590746201467; Fri, 29 May 2020 02:56:41 -0700 (PDT) MIME-Version: 1.0 References: <20200526133830.4438-1-mail@ambrevar.xyz> <87lflbahaz.fsf@gnu.org> <87zh9rf5z8.fsf@ambrevar.xyz> In-Reply-To: <87zh9rf5z8.fsf@ambrevar.xyz> From: zimoun Date: Fri, 29 May 2020 11:56:30 +0200 Message-ID: Subject: Re: [bug#41539] [PATCH 1/2] size: Document that positional arguments can be store items. To: Pierre Neidhardt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41539 Cc: 41539@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dear, On Fri, 29 May 2020 at 11:26, Pierre Neidhardt wrote: > >> +@example > >> +guix size $(guix system build config.scm) > > > > Please use backquotes instead of $(=E2=80=A6), 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#ta= g_23_02_06_03 (I do not know if it is the latest version of the document.) Well, $(...) is already used in the manual. For example, X11 fonts section because of nested. But elsewhere not, see e.g., invoking guix archive or Nteworking Services or Invoking guix system sections. https://guix.gnu.org/manual/devel/en/guix.html#X11-Fonts https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-archive https://guix.gnu.org/manual/devel/en/guix.html#Networking-Services https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-system Therefore, only one should be used. And $(...) is better. So I would be in favour to replace all the backquotes by $(...) in the manual. All the best, simon