From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wNnYHmV34WPVJgAAbAwnHQ (envelope-from ) for ; Mon, 06 Feb 2023 22:55:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gKnGHmV34WMkSwAA9RJhRA (envelope-from ) for ; Mon, 06 Feb 2023 22:55:49 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 25B1A19BBA for ; Mon, 6 Feb 2023 22:55:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pP9S4-00011W-OW; Mon, 06 Feb 2023 16:55:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pP9S2-00011H-La for bug-guix@gnu.org; Mon, 06 Feb 2023 16:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pP9S2-0004ha-Be for bug-guix@gnu.org; Mon, 06 Feb 2023 16:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pP9S2-0006IR-0x for bug-guix@gnu.org; Mon, 06 Feb 2023 16:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46782: guix environment --expose options cannot be layered onto $PWD Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 06 Feb 2023 21:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46782 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: 46782@debbugs.gnu.org, bbb ee Received: via spool by 46782-submit@debbugs.gnu.org id=B46782.167572046924155 (code B ref 46782); Mon, 06 Feb 2023 21:55:01 +0000 Received: (at 46782) by debbugs.gnu.org; 6 Feb 2023 21:54:29 +0000 Received: from localhost ([127.0.0.1]:50103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pP9RV-0006HW-9a for submit@debbugs.gnu.org; Mon, 06 Feb 2023 16:54:29 -0500 Received: from mail-qt1-f171.google.com ([209.85.160.171]:42779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pP9RT-0006HJ-SD for 46782@debbugs.gnu.org; Mon, 06 Feb 2023 16:54:28 -0500 Received: by mail-qt1-f171.google.com with SMTP id 5so4723847qtp.9 for <46782@debbugs.gnu.org>; Mon, 06 Feb 2023 13:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=S41lGQ01/mP0iTEFTCUHMak4nifACMmBp6M4ljaqEwQ=; b=Hek6MNiiCRmzYiW/kPg+vPUurILpKkVV7RoD+CgG6MyZB2rGOlyR0s+3Zsfg4zySSR vL/M3SIvF+cHbK8Sc1tvtJxqFiTcS3jcpb9GlKGt2NFK0qvVFwy9mWZXFNG6V57CBfhh EO+gtVaAqDHV8kyaCIPwkWeEZPW7Rio0XRuzbfLN8fQBFBiUt1yMcw+VA5gd3fHBB0V5 NM75aifSJCBnJ7DCIXdiF+YHNkQ15tXO7+7lWIc0+0jRpdHmYELfA56k1bU8rRYakX5s 1u5zYyTomX/Yx1SnPVZ7ocbNdi16MtW6aE5QbybZwz4QvG7IKx+hv9t89YRPs2Ju8KyA 7Oxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S41lGQ01/mP0iTEFTCUHMak4nifACMmBp6M4ljaqEwQ=; b=lpPBgPBTeTutbBf435C98hM0n8EcReJRWU2+WaKD/ssPbExG4JmK1I3IBSHBStEDEY A6RK4KNJqiTU2AzqUMgvhu9JFdgS8iKHfteMoxLsg+7b+gwyyQfHD2OhGxmaBxT9jnox OBUOsa63mx7QnvfqowHLLZrZTmMwRn7Plu/XtYAD45iPoxQC7Gb88hF4plIX4lbpvAW1 pZlCkhDEDqfUa6a4ka1ejy7mUkifRYY6x9rygV8wJqEuCAQHFRKJC9sxWnccDwR5ZC6H P4E8yDGuKwci6mNZHSz0SqpxpN/qGM7Hg7CSg/gp5jcRkTDk77S6Da3QCUpydKn1kV16 waAQ== X-Gm-Message-State: AO0yUKXIMqyeqGQi1BHRi+cYvoKssNT+h1KeVdurV81UxfIrzaB1nYTH 5mCfUk32v005/XxMgl0QBh4iX8Av5EAfyw== X-Google-Smtp-Source: AK7set8pphfIHcNWxF24qa1it30bXrv2wNQWbfuSjkmD9jxeTZTGtsQFhcGhLXNQaU7PDVcdPsIVDA== X-Received: by 2002:a05:622a:130e:b0:3b3:7707:9b92 with SMTP id v14-20020a05622a130e00b003b377079b92mr1869774qtk.15.1675720461904; Mon, 06 Feb 2023 13:54:21 -0800 (PST) Received: from hurd (dsl-10-128-129.b2b2c.ca. [72.10.128.129]) by smtp.gmail.com with ESMTPSA id b13-20020ac844cd000000b003ba1ccba523sm4409799qto.93.2023.02.06.13.54.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 13:54:21 -0800 (PST) From: Maxim Cournoyer References: <87blc797i5.fsf@gmail.com> <877cx8x84p.fsf_-_@gmail.com> <87pmazopdx.fsf@gmail.com> Date: Mon, 06 Feb 2023 16:54:20 -0500 In-Reply-To: <87pmazopdx.fsf@gmail.com> (Simon Tournier's message of "Fri, 27 Jan 2023 18:31:38 +0100") Message-ID: <87r0v2lasz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675720549; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=S41lGQ01/mP0iTEFTCUHMak4nifACMmBp6M4ljaqEwQ=; b=X+LzB/MSuAzTHAdRzxjw1UQFux2X6CUarGLOUdjvaMbkTGP80jQmqNj4oxC2nRxfCtVFvy YKaOZImQUGUltBkILuvId9lkAYbKVR7V4flltQ0nsiKhQVHYIRRPtA/K96mAi7kU0/PHnn ut74Cl2WhcJtypsQXmnpKJsYLK16gTlx8Kin6g2EmUEJwIvaY67NazcxQ9e66ukGLMQ2ZR G61jzZThv2FnN+HqbqquUqpPureJGMdMvx7QFCaft2hglpK+5TvqDLQxli9fU2w0jPKDcf z47/oevVeUqBQasFalCBCymeGLuA3mKqkYpUiOutnbx1NjAtLqqo0Y5uKZr56A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Hek6MNii; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675720549; a=rsa-sha256; cv=none; b=ZE7mwYOaFADfCYoKEQTIuGj4+lPM7hE/PF4dxT9fwF00ylZ1TRJ2op3KiYlptDBdGWczHB usRXj7VtE81pzSKsLnPp+hNtYreeKOU/O+bdJqwyoiLTbY+mL3MJQbRBi2SjrRvtDK+vhv ltdLHI5OGrFmBnvyTSh9vTc6jeQk8CCzVNxunQDZ8+JBKBgLy1dOAkMVtgLBBGGh5vnG3k r2IY1UenTdk4tnLqMoWLt6UNeoW5UIxTGJN9wlA4QL37tlD5hLdVijzrfE5VC9JUwE2wgw MQgGhzASbzszS/jEeRaV57nqW/S/gO75u2wYulG+28IsuqTVjI51I3PtVt9euw== X-Migadu-Spam-Score: -1.29 X-Spam-Score: -1.29 X-Migadu-Queue-Id: 25B1A19BBA X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Hek6MNii; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: v0TjCqw5+L9b Hi, Simon Tournier writes: > Hi Maxim, > > A naive question since it works when using the --no-cwd option. > > On ven., 27 janv. 2023 at 11:19, Maxim Cournoyer wrote: > >> --8<---------------cut here---------------start------------->8--- >> guix environment -C --expose=/tmp=$PWD/tmp --ad-hoc bash coreutils \ >> -- bash -c 'stat $PWD/tmp' >> --8<---------------cut here---------------end--------------->8--- > > Is $PWD referring to the same thing? Because one is outside and the > other is inside. Yes! See: --8<---------------cut here---------------start------------->8--- maxim@hurd ~$ echo $PWD/tmp && guix environment \ -C --expose=/tmp=$PWD/tmp --ad-hoc bash coreutils -- bash -c 'echo $PWD/tmp' /home/maxim/tmp /home/maxim/tmp --8<---------------cut here---------------end--------------->8--- -- Thanks, Maxim