From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Re: Changing user-account's shell Date: Fri, 19 Apr 2019 23:24:27 +0200 Message-ID: <20190419212427.jaywhuyzefv2hcek@melmoth> References: <20190417195944.v3duu4wzh7sqj7dk@melmoth> <87d0lkz5jw.fsf@ambrevar.xyz> <20190418202248.rnemtiamtofyh6z7@melmoth> <87imvaiizo.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHb2H-0000YG-VU for help-guix@gnu.org; Fri, 19 Apr 2019 17:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHazo-0003nB-Ox for help-guix@gnu.org; Fri, 19 Apr 2019 17:24:33 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54911) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHazo-0003mY-J6 for help-guix@gnu.org; Fri, 19 Apr 2019 17:24:32 -0400 Content-Disposition: inline In-Reply-To: <87imvaiizo.fsf@ambrevar.xyz> 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: Pierre Neidhardt Cc: help-guix@gnu.org Le 04/19, Pierre Neidhardt a écrit : > Tanguy Le Carrour writes: > > 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 > automatically. Oh oh oh… and now I understand the difference between `fish` and `exec fish`! ^_^' … It works perfectly! I still don't know if I'll go for this solution or the `chsh` as suggested by Ludo'. Regards -- Tanguy