[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing user-account's shell

From: Pierre Neidhardt
Subject: Re: Changing user-account's shell
Date: Fri, 19 Apr 2019 08:53:15 +0200

Tanguy Le Carrour <address@hidden> writes:

> Le 04/17, Pierre Neidhardt a écrit :
>> 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.
> 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 have to
> do one extra ctrl+d to close a terminal. ^_^'

You would not, because when you run

--8<---------------cut here---------------start------------->8---
exec fish "$@"
--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

Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]