From patchwork Fri Mar 26 07:03:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 28119 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1FD1E27BC5D; Fri, 26 Mar 2021 07:04:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 998BF27BC5C for ; Fri, 26 Mar 2021 07:04:10 +0000 (GMT) Received: from localhost ([::1]:47972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPgVt-0007yA-P2 for patchwork@mira.cbaines.net; Fri, 26 Mar 2021 03:04:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPgVn-0007x4-8o for guix-patches@gnu.org; Fri, 26 Mar 2021 03:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPgVn-0000N2-18 for guix-patches@gnu.org; Fri, 26 Mar 2021 03:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPgVm-0000Zh-TM for guix-patches@gnu.org; Fri, 26 Mar 2021 03:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47404] [PATCH 2/2] doc: Fix typos. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Mar 2021 07:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47404 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47404@debbugs.gnu.org Cc: zimoun Received: via spool by 47404-submit@debbugs.gnu.org id=B47404.16167422152168 (code B ref 47404); Fri, 26 Mar 2021 07:04:02 +0000 Received: (at 47404) by debbugs.gnu.org; 26 Mar 2021 07:03:35 +0000 Received: from localhost ([127.0.0.1]:40230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPgVL-0000Yo-15 for submit@debbugs.gnu.org; Fri, 26 Mar 2021 03:03:35 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:53013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPgVI-0000YT-Qr for 47404@debbugs.gnu.org; Fri, 26 Mar 2021 03:03:33 -0400 Received: by mail-wm1-f43.google.com with SMTP id d191so2411665wmd.2 for <47404@debbugs.gnu.org>; Fri, 26 Mar 2021 00:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ez6nI29FqO15t7PJS9BZMXb0lQn4n4v5F2ktTutJ9rU=; b=mQQT99nrZwBuhhXfU0L3QrLfA4zD3hRb8Bj3Btg5oV0rcqLsSV9Ka39GG6Vd3bkn+K MdnDRNfECOdeGVZ8vYp3pl47YUe2PDKmgbeDcOi3AdtVcU/P8+zmWUS0lTPExY/Wmfbi 5aPn9AJBo/96zM/d8GMAcEOmbk9FxmH9xt45fqxS6/BRrLPbU6ZANVISUSLLj1AIrtw3 ZqsCdtO5q6fk2ktCGYFML8SjO3iFfjvuCJOLf+O/uIXWT+ou0FFVZYhh8DdZDjQEI5tJ XyJcoqBk9SnAMD/vGEojF7b4LVBWj8rlLMAMe3v1TD4kVtWJyLp1Xwqk2xxelMdmZUML hCZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ez6nI29FqO15t7PJS9BZMXb0lQn4n4v5F2ktTutJ9rU=; b=NOQMtaAUSotFXKHaCIqDCpPQtSIgjS8rFbzBn33Kx7OT1tRGZrXweWZLo1FokacXY5 4nTD4KXq9OmhQ7Ow/aVR6CQcEqzvUeGIrqK07w3BLt9gVsZ+4tWKxzM8PzSuPA2kD/J3 5ugI5jyo4pxh+Ta+RyxwAkxUcu5glPaWwLfx0LqD8If3EXBOzXn+e+neaplX2Cr7Gmpz 8mDztE2RU7kc9ynnl6/H0wj7CGnPH+avVflg7UhMl7xTbtkx9gqiWzQtia34g1yYtyU3 mrTAQB+tYTSsI7kOwuNzocR/+IXYW1wSOGcDwqcsiUTbqpzFah/17hRwIc3Cb+XYTH3u hyFg== X-Gm-Message-State: AOAM5337OgKOrdQzzNi+h9czqPdmyQaEKkvsKeSFozmQYobDOWYO91rX VNHHogEL5K6FQE2c8W9lXc8au3917zc= X-Google-Smtp-Source: ABdhPJz2Q1gDMc5rrdomOUN9y2HgL8tQQGj62i0Vhy01uuWwv1O7qe09SRLPMNUqJ6embS31p13+tA== X-Received: by 2002:a1c:c20a:: with SMTP id s10mr11413718wmf.144.1616742206929; Fri, 26 Mar 2021 00:03:26 -0700 (PDT) Received: from lili.univ-paris-diderot.fr ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id x14sm11011472wrw.13.2021.03.26.00.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 00:03:26 -0700 (PDT) From: zimoun Date: Fri, 26 Mar 2021 08:03:19 +0100 Message-Id: <20210326070319.5236-2-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210326070319.5236-1-zimon.toutoune@gmail.com> References: <20210326070319.5236-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi: Replace shell substitution (`) by $(). --- doc/guix.texi | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 3bc8d029d9..eb4f711cf9 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1043,10 +1043,10 @@ Bash syntax and the @code{shadow} commands): @c for why `-G' is needed. @example # groupadd --system guixbuild -# for i in `seq -w 1 10`; +# for i in $(seq -w 1 10); do useradd -g guixbuild -G guixbuild \ - -d /var/empty -s `which nologin` \ + -d /var/empty -s $(which nologin) \ -c "Guix build user $i" --system \ guixbuilder$i; done @@ -4211,7 +4211,7 @@ Return the derivation(s) leading to the given store items For example, this command: @example -guix gc --derivers `guix package -I ^emacs$ | cut -f4` +guix gc --derivers $(guix package -I ^emacs$ | cut -f4) @end example @noindent @@ -10120,7 +10120,7 @@ Similarly, the following command builds all the available packages: @example guix build --quiet --keep-going \ - `guix package -A | cut -f1,2 --output-delimiter=@@` + $(guix package -A | cut -f1,2 --output-delimiter=@@) @end example @var{package-or-derivation} may be either the name of a package found in @@ -10825,8 +10825,8 @@ This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent: @example -guix build --log-file `guix build -d guile` -guix build --log-file `guix build guile` +guix build --log-file $(guix build -d guile) +guix build --log-file $(guix build guile) guix build --log-file guile guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)' @end example @@ -12334,7 +12334,7 @@ For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in: @example -guix graph -t derivation `guix system build -d my-config.scm` +guix graph -t derivation $(guix system build -d my-config.scm) @end example @item module @@ -12363,7 +12363,7 @@ example, the command below produces the reference graph of your profile (which can be big!): @example -guix graph -t references `readlink -f ~/.guix-profile` +guix graph -t references $(readlink -f ~/.guix-profile) @end example @item referrers @@ -12935,7 +12935,7 @@ their dependencies over to @var{host}, logged in as @var{user}: @example guix copy --to=@var{user}@@@var{host} \ - coreutils `readlink -f ~/.guix-profile` + coreutils $(readlink -f ~/.guix-profile) @end example If some of the items to be copied are already present on @var{host}, @@ -32897,8 +32897,8 @@ system configuration file. You can then load the image and launch a Docker container using commands like the following: @example -image_id="`docker load < guix-system-docker-image.tar.gz`" -container_id="`docker create $image_id`" +image_id="$(docker load < guix-system-docker-image.tar.gz)" +container_id="$(docker create $image_id)" docker start $container_id @end example @@ -33422,7 +33422,7 @@ The default @command{run-vm.sh} script that is returned by an invocation of @command{guix system vm} does not add a @command{-nic user} flag by default. To get network access from within the vm add the @code{(dhcp-client-service)} to your system definition and start the VM using -@command{`guix system vm config.scm` -nic user}. An important caveat of using +@command{$(guix system vm config.scm) -nic user}. An important caveat of using @command{-nic user} for networking is that @command{ping} will not work, because it uses the ICMP protocol. You'll have to use a different command to check for network connectivity, for example @command{guix download}. @@ -33437,7 +33437,7 @@ To enable SSH inside a VM you need to add an SSH server like 22 by default, to the host. You can do this with @example -`guix system vm config.scm` -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22 +$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22 @end example To connect to the VM you can run @@ -34491,7 +34491,7 @@ To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}): @example -guix gc -R `readlink -f ~/.guix-profile` | grep bash +guix gc -R $(readlink -f ~/.guix-profile) | grep bash @end example @noindent @@ -34499,7 +34499,7 @@ guix gc -R `readlink -f ~/.guix-profile` | grep bash Likewise for a complete Guix system generation: @example -guix gc -R `guix system build my-config.scm` | grep bash +guix gc -R $(guix system build my-config.scm) | grep bash @end example Lastly, to check which Bash running processes are using, you can use the