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 11:32:55 +0200 Message-ID: <87imoewks8.fsf@ambrevar.xyz> References: <87mudrxvs8.fsf@ambrevar.xyz> <87d0emwm95.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]:47183) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNZUK-0005rL-If for guix-devel@gnu.org; Thu, 24 Oct 2019 05:33:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNZUI-0005yV-Sg for guix-devel@gnu.org; Thu, 24 Oct 2019 05:33:00 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:54415) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNZUI-0005xx-MY for guix-devel@gnu.org; Thu, 24 Oct 2019 05:32:58 -0400 In-Reply-To: <87d0emwm95.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 Hi Mark, Good points! Mark H Weaver writes: > However, we could provide a Bash shell function (with a different name) > that provides conveniences like this. Users of other shells would not > be able to use the Bash shell function, though. Ideally, we'd provide > shell functions with a similar interface for several popular shells. > I'm not sure if it's worth it, but it could be done. We already suffer from "Bash-specificism" since our "etc/profile" files are written in Bash. It will work for Zsh, but I'm not sure it works for POSIX shell and it does not work for tcsh or Fish shell. As you suggested `guix-activate` could be a shell function that's defined in /etc/profile or anywhere appropriate. We can "switch-case" on the running shell and define `guix-activate` appropriately. This way we could support different shells. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2xb8cACgkQm9z0l6S7 zH/1zwf+LPrFIb1918fV2L3MS2Kx6SEujYcKXXK/P9QeXNXaT/SQhVjX8ESgX795 W6t1JNghcZVBq5g3JCsabEbYJJb3psNUYxdJI2W2hpQooK+mJG7Xl2UQfApIZWvX qurZDxIgYUblj9AWg5j2kEa6Cmxg/MpPLHLA5ZINh5WSeGm8t8Pq6k4m66LhAf6p YZUdF91iINwBw5nZxdyJSNjQjNTbu1qzLC0LWc069vhOjTDtM/R4jKhBrfnGBqgy h/pCab6zGTVVMXXs4kgVbgXYn4pw+iuaWWuLBmvsLfuRrVSYobb1Nuh+8i3TZs5Y 2JHp6Kloi3NOymHxrnLy1hoifz5xSw== =TouN -----END PGP SIGNATURE----- --=-=-=--