From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: [PATCH] gnu: xterm: Accept $SHELL even if not in /etc/shells Date: Thu, 13 Feb 2014 11:29:35 -0500 Message-ID: <87ha83m0wg.fsf@netris.org> References: <87zjlvh276.fsf@netris.org> <20140213080720.GA28268@jocasta.intra> <87txc3h005.fsf@netris.org> <871tz7p354.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDzBC-0005rZ-Je for guix-devel@gnu.org; Thu, 13 Feb 2014 11:30:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDzB7-0003vr-11 for guix-devel@gnu.org; Thu, 13 Feb 2014 11:30:26 -0500 In-Reply-To: <871tz7p354.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 13 Feb 2014 14:12:55 +0100") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> IMO, it's not reasonable to have to add >> /home///bin/ for every combination of , >> , and to /etc/shells, in order to prevent 'xterm' from >> overriding your $SHELL setting. > > On NixOS, /etc/shells contains this: > > /run/current-system/sw/bin/bash > /var/run/current-system/sw/bin/bash > /bin/sh > > Where {/var/,}/run/current-system contains the =E2=80=9Cglobal=E2=80=9D p= rofile, like on > our QEMU images. > > Perhaps that=E2=80=99s good enough no? If a user wants to set $SHELL to be the one in their private profile, I think 'xterm' shouldn't ignore it and modify $SHELL just because it hasn't been authorized by the administrator of the system. This seems to me to be against the spirit of "liberating". Well, it seems that I'll have to live on a local branch of Guix, with my own modifications. I suppose this is not necessarily a bad thing. The ease with which this can be done is part of what makes Guix liberating, after all. Mark