From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Profiles/manifests-related command line interface enhancements Date: Thu, 24 Oct 2019 22:04:52 +0200 Message-ID: <87o8y5ucyj.fsf@ambrevar.xyz> References: <87mudrxvs8.fsf@ambrevar.xyz> <87d0emwm95.fsf@netris.org> <87imoewks8.fsf@ambrevar.xyz> <20191024184246.014d810e@scratchpost.org> <87tv7yt3e2.fsf@ambrevar.xyz> <875zkevtel.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33961) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNjLt-0007Zr-Ts for guix-devel@gnu.org; Thu, 24 Oct 2019 16:04:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNjLs-0004lc-ED for guix-devel@gnu.org; Thu, 24 Oct 2019 16:04:57 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:60959) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNjLs-0004kb-7C for guix-devel@gnu.org; Thu, 24 Oct 2019 16:04:56 -0400 In-Reply-To: <875zkevtel.fsf@netris.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Mark H Weaver writes: > It wouldn't be sufficient to remove them. You'd have to restore the > previous settings. For example, if we remove the settings for PATH, > MANPATH, etc, without restoring the previous settings, I doubt that you > would be pleased with the results. I don't understand. Which previous settings? As far as I understand, activating a profile never _removes_ any value from environment variables. > It seems to me that the most natural approach to allow restoring the > previous environment settings is to launch a subshell when you activate > a profile. That subshell can then simply be exited to restore the > previous settings. I gave the example of EXWM, for which the user would like to change the profile but a subshell won't do since it won't reflect on the parent process, Emacs. All that said, this is just a suggestion, I can live without this feature. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2yA+QACgkQm9z0l6S7 zH983wgAnBEMjVawYd3EzDpeQqwUX+e7hZkGWsVkoc8B/mik9Iq+tZwYs7oxclT3 l7Fo4LprSqFavz3JLd5HLn+PwLYjGY+PDhvdxlPbXRVj+bu5ADmw7mZUlsS/J+xu Ftf/qNgXCl38AbRZq/pTBhsnnJh/njiyJCJqvsx0IVOV+Tf9klOKZMTI1aGUcOla TXIu2q3NOxmvK5ai5Iv1UWdAFzz0UwjJYqgnd1gp57VbUANBONKDtFTgLx3/ASm/ /7vOnFSyxMyilNIzP9jUunBK1qfNTMm3ccBLeDaEpn4vWf5zn3Tq6LjNkaKr2bAH ASNH5n0QmWraWwH0P/L070/HqgVRpw== =CngG -----END PGP SIGNATURE----- --=-=-=--