From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gOIUBlMuL2GWcQEAgWs5BA (envelope-from ) for ; Wed, 01 Sep 2021 09:40:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eJKFAVMuL2FjcgAAB5/wlQ (envelope-from ) for ; Wed, 01 Sep 2021 07:40:03 +0000 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 623AB925B for ; Wed, 1 Sep 2021 09:40:02 +0200 (CEST) Received: from localhost ([::1]:56966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLKqn-0005QO-Br for larch@yhetil.org; Wed, 01 Sep 2021 03:40:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLKqb-0005Pz-QO for help-guix@gnu.org; Wed, 01 Sep 2021 03:39:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLKqZ-0006B9-I1 for help-guix@gnu.org; Wed, 01 Sep 2021 03:39:49 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 941A5240101 for ; Wed, 1 Sep 2021 09:39:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1630481983; bh=x/N2HlZZzic5vahevPpOFGcOKUmvJu4lbJ8YeoQNIDA=; h=From:To:Cc:Subject:Date:From; b=EBZSMAqDuhl3dQVBZ0QgXXBKUsX3IyonlnRwjvFQ2/Gmu4d4tSldo4u2w3bvzv2R+ wX9YLOuWDjSKPxELVV9tWUjh6wBqbv6cT0pgT9/KtxOQyiLTOR6nylMz0RwOFfzMM0 ghHsKEROwRI4+603ADb1x8Q2peda1ibeAh7+aIROyyvg/nSuIrci7gLJRRkgyjoop7 HvDogQ61Jl6bsi7aEjtmRCgyC51SSRfEkpdyaFPLGigIOoaDmoTpYaXBhJqgD1+ZFO 1ZwkWLwKpaGaxCJcPTKckeO14p+dWbAYy9fR03YcBml0IKZGBOik2okFcGmJrlPgHh Mv4kGvKuqgl+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gzwtj1qGXz6tmH; Wed, 1 Sep 2021 09:39:40 +0200 (CEST) References: <87o89dh1e7.fsf@gmail.com> From: Guillaume Le Vaillant To: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= Subject: Re: SBCL's run-program and environment variables Date: Wed, 01 Sep 2021 07:32:53 +0000 In-reply-to: <87o89dh1e7.fsf@gmail.com> Message-ID: <87bl5cagnh.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mail@ambrevar.xyz, help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630482002; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qXGFomBjNS42C404RO+APenIhjs4S4m/qJT5+A7Yb0E=; b=HYN3GtqEEBlDUTvv1RxfGVtDquvc7IOV6uC4wMr60rOUzFtuBe/UYcYV29tPWhQQ/sRIWo yIGQeZPWZk2Usa+VIRoeuIxW+CyFEk7OnE0alReNnnqYdBuEotmrwnET8pTe5A1EMmXOz7 7o/ZMazN6eLx5sNkgYmhLkq1G3Zko37vExx9/Xkoog6mopULfFGFydKj1FBtV+3CWbg0kA cYmce8Xh4i1ikFuSWznmFK1mvWl3hx5Hs9H//kohVYAFUMDbS67pNruR3O0RiUVvxVA4wX oe1XRH1HaJtSyjwucvvdGd47ozSS+/AvIQh+MHrFIAyQj7qIV5Py36nKtfU+WA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630482002; a=rsa-sha256; cv=none; b=cV5q1RAYtNtUTSJdUcJnPXxg2u22MtsRXxMRS0YpTC0DqFZkWMJz986HrtvK2Qq7pi3HG8 H17m88u26QlBnIZvuk5eGDMulUGZArtMtBuOXbzVLAtNRuJ5pg+5oMD8LSNAiZGAYgzqLP LOQhkQmjWMdvNA4V73I6YN5o8XnOpsWVjGEvg65h43sdo4oWlJOpi8zozhx4Oc+Gm/NmxI alnA7YVZWfjBVsaAGTFRraL0k3WWJwIQRxl6jzxMIZg37ERSFolL+1OwwKewrgmm+YElEL teArgLHkX+lvLP/23CGXHcdJF+PANoRBBYDgjStDaQM56/wCKFgRLwFwVdinLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EBZSMAqD; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.72 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EBZSMAqD; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 623AB925B X-Spam-Score: -4.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: wxAKEJ8kBme4 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Andr=C3=A9 A. Gomes skribis: > Hi Guix, > > Today I had the following issue and I'm wondering if other Guix users > have this problem too. > > Start a SBCL REPL and run: > > --8<---------------cut here---------------start------------->8--- > (run-program "ls" '("-la") > :search "/run/current-system/profile/bin" > :environment '("TIME_STYLE=3Dfull-iso") > :output *standard-output*) > --8<---------------cut here---------------end--------------->8--- > > > This fails on my side, but I was told it works on other GNU/Linux > distros. Can you reproduce it? > > I find this quite strange since the following Bash works for me: > > --8<---------------cut here---------------start------------->8--- > TIME_STYLE=3Dfull-iso /run/current-system/profile/bin/ls -la > --8<---------------cut here---------------end--------------->8--- > > Thank you. Hi, The documentation of the 'run-program' function indicates: =2D-8<---------------cut here---------------start------------->8--- :SEARCH Look for PROGRAM in each of the directories in the child's $PATH environment variable. Otherwise an absolute pathname is required. =2D-8<---------------cut here---------------end--------------->8--- which means that it should be used either like this: =2D-8<---------------cut here---------------start------------->8--- (run-program "ls" '("-la") :search t :environment '("TIME_STYLE=3Dfull-iso" "PATH=3D/run/current-system/profile/bin") :output *standard-output*) =2D-8<---------------cut here---------------end--------------->8--- or like this: =2D-8<---------------cut here---------------start------------->8--- (run-program "/run/current-system/profile/bin/ls" '("-la") :environment '("TIME_STYLE=3Dfull-iso") :output *standard-output*) =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYS8uMg8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+n3wD/ZBC9Ilhx3eNTjKB6mXE1g7feb63Ha3eRxWbK JvKtEUIA/AueSPRh+19mqW+lEZdkfYaNa6FywKxcUUVZYJvtP3j4 =29HA -----END PGP SIGNATURE----- --=-=-=--