From patchwork Sun Feb 9 20:11:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Cassou X-Patchwork-Id: 20197 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 C832117AFF; Sun, 9 Feb 2020 20:12:14 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 ESMTP id 9372B17A2F for ; Sun, 9 Feb 2020 20:12:14 +0000 (GMT) Received: from localhost ([::1]:54176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0swA-0002U7-5R for patchwork@mira.cbaines.net; Sun, 09 Feb 2020 15:12:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34365) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0svz-0002U1-Cu for guix-patches@gnu.org; Sun, 09 Feb 2020 15:12:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0svy-0004T1-BK for guix-patches@gnu.org; Sun, 09 Feb 2020 15:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0svy-0004So-7t for guix-patches@gnu.org; Sun, 09 Feb 2020 15:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0svy-00041m-4K for guix-patches@gnu.org; Sun, 09 Feb 2020 15:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39533] [PATCH] doc: Clarify documentation of guix environment --expose vs. Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Feb 2020 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39533 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39533@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158127911215465 (code B ref -1); Sun, 09 Feb 2020 20:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2020 20:11:52 +0000 Received: from localhost ([127.0.0.1]:53247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0svo-00041M-Go for submit@debbugs.gnu.org; Sun, 09 Feb 2020 15:11:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:36456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0svm-00041F-Lp for submit@debbugs.gnu.org; Sun, 09 Feb 2020 15:11:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34325) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0svl-0002Tr-EH for guix-patches@gnu.org; Sun, 09 Feb 2020 15:11:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0svk-0004DI-Bd for guix-patches@gnu.org; Sun, 09 Feb 2020 15:11:49 -0500 Received: from mail.choca.pics ([80.67.172.235]:54036) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j0svk-0004CA-0Q for guix-patches@gnu.org; Sun, 09 Feb 2020 15:11:48 -0500 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id EB494181929EE for ; Sun, 9 Feb 2020 21:11:45 +0100 (CET) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id C_9BsYD8Hxy5 for ; Sun, 9 Feb 2020 21:11:45 +0100 (CET) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 716E4181929E0 for ; Sun, 9 Feb 2020 21:11:45 +0100 (CET) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 1_uefho8Qr_Z for ; Sun, 9 Feb 2020 21:11:45 +0100 (CET) Received: from luz4 (57.139.120.78.rev.sfr.net [78.120.139.57]) by mail.choca.pics (Postfix) with ESMTPSA id 3874118192B26 for ; Sun, 9 Feb 2020 21:11:45 +0100 (CET) From: Damien Cassou Date: Sun, 09 Feb 2020 21:11:44 +0100 Message-ID: <87k14v34hr.fsf@cassou.me> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 The documentation for --expose and --share parameters are so similar that the reader has to read both descriptions in parallel to find the difference. * doc/guix.texi (Invoking guix environment): Merge the two descriptions into one, making it much easier to see the difference. From a790162f26a2349039955c70f264822dc00986b3 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sun, 9 Feb 2020 21:07:04 +0100 Subject: [PATCH] doc: Clarify documentation of guix environment --expose vs. --share The documentation for --expose and --share parameters are so similar that the reader has to read both descriptions in parallel to find the difference. * doc/guix.texi (Invoking guix environment): Merge the two descriptions into one, making it much easier to see the difference. --- doc/guix.texi | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 56cc333fe4..baa128f6f0 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4958,8 +4958,10 @@ shared and will change to the user's home directory within the container instead. See also @code{--user}. @item --expose=@var{source}[=@var{target}] -For containers, expose the file system @var{source} from the host system -as the read-only file system @var{target} within the container. If +@item --share=@var{source}[=@var{target}] +For containers, @code{--expose} (resp. @code{--share}) exposes the file +system @var{source} from the host system as the read-only +(resp. writable) file system @var{target} within the container. If @var{target} is not specified, @var{source} is used as the target mount point in the container. @@ -4971,19 +4973,6 @@ directory: guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile @end example -@item --share=@var{source}[=@var{target}] -For containers, share the file system @var{source} from the host system -as the writable file system @var{target} within the container. If -@var{target} is not specified, @var{source} is used as the target mount -point in the container. - -The example below spawns a Guile REPL in a container in which the user's -home directory is accessible for both reading and writing via the -@file{/exchange} directory: - -@example -guix environment --container --share=$HOME=/exchange --ad-hoc guile -- guile -@end example @end table @command{guix environment} -- 2.24.1