From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Changing user-account's shell Date: Fri, 19 Apr 2019 08:53:15 +0200 Message-ID: <87imvaiizo.fsf@ambrevar.xyz> References: <20190417195944.v3duu4wzh7sqj7dk@melmoth> <87d0lkz5jw.fsf@ambrevar.xyz> <20190418202248.rnemtiamtofyh6z7@melmoth> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHNOj-0002oP-9v for help-guix@gnu.org; Fri, 19 Apr 2019 02:53:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHNOh-0004II-KN for help-guix@gnu.org; Fri, 19 Apr 2019 02:53:21 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:52537) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHNOh-0004Ht-Dt for help-guix@gnu.org; Fri, 19 Apr 2019 02:53:19 -0400 In-Reply-To: <20190418202248.rnemtiamtofyh6z7@melmoth> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Tanguy Le Carrour Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tanguy Le Carrour writes: > Le 04/17, Pierre Neidhardt a =C3=A9crit : >> I've never changed my shell in Guix, so things might be different here, >> but I know that many other distributions expect a Bourne-compatible >> login shell or else there will be issues when parsing some startup >> scripts. > > I've been happily using Fish as my default shell (defined in `/etc/passwd= `) > for years! First on Debian, then on Parabola/Arch. And everything has > been perfectly fine so far. Watch out, because errors would probably be silent and remain lurking in the shadows. >> The recommended alternative (again, on other systems) is to drop into >> fish from .bashrc. >>=20 >> https://wiki.archlinux.org/index.php/Fish#Setting_fish_as_interactive_sh= ell_only > > Thanks! The Arch community has **really** done a great job with its wiki! > Unfortunately, calling Fish from Bash is not really sexy! This is what I > do on systems where I cannot set my default shell and I don't like to hav= e to > do one extra ctrl+d to close a terminal. ^_^' You would not, because when you run =2D-8<---------------cut here---------------start------------->8--- exec fish "$@" =2D-8<---------------cut here---------------end--------------->8--- it replaces the Bash process, so exiting Fish would effectively terminate the direct child process of the terminal which would then close automatically. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAly5cFsACgkQm9z0l6S7 zH9v0wgAo27GVlpdLDYKtIP1uUJglSuPAim0poRWZ+i3U7GpPQdsZcUpubO0AjQm B0Q8EXeuMqmoNE4HtJX8BFtu1qM6oFb2/92oZMRcPQA6SHpmmM9+ySzV6qvleBLo EsjW6C/78h8y4B/EQDxHYBORuv7P+YhYQAo83Cd/Fhcvqb+YGYtrIurDAZ/KMwiN rgwLvN51ft7COtyAQF2Ig8nw06QQFBPoL5s5rvXtMA4EoEpQvZ9oCuv+RQUzY15T JGUSFb2Sv8pDOSCYdRuNUzX49mxH3o0jmNXshp1vGIVNBapeZOmvRzcd/UfYy8BW n/quuOLnVyLwZRUI3po8HTQsb7Cv4g== =fZdw -----END PGP SIGNATURE----- --=-=-=--