From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 14/15] scripts: environment: Add --container option. Date: Sat, 31 Oct 2015 11:28:25 +0100 Message-ID: <87k2q39vsm.fsf@gnu.org> References: <1436188604-2813-1-git-send-email-dthompson2@worcester.edu> <1436188604-2813-14-git-send-email-dthompson2@worcester.edu> <87zj38f326.fsf@gnu.org> <87oah93zbk.fsf@gnu.org> <87a8rpyzb9.fsf@gnu.org> <87d1wdn72e.fsf@gnu.org> <87k2qak4sb.fsf@gnu.org> <874mhcy5yz.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]:38214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsTOk-0000MH-Uj for guix-devel@gnu.org; Sat, 31 Oct 2015 06:28:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsTOj-0001zM-In for guix-devel@gnu.org; Sat, 31 Oct 2015 06:28:34 -0400 In-Reply-To: (David Thompson's message of "Fri, 30 Oct 2015 21:25:46 -0400") 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: "Thompson, David" Cc: guix-devel , David Thompson "Thompson, David" skribis: > Hello, sorry for the delay. > > On Tue, Oct 27, 2015 at 6:13 AM, Ludovic Court=C3=A8s wrot= e: [...] >> What about automatically mapping $SHELL in the container when it is set? > > The issue is that the default command to evaluate is $SHELL or > "/bin/sh." You can be almost certain that $SHELL is not going to be > available in the container. What to do? Check if the command is > 'equal?' to (list (getenv "SHELL")) and make it '("/bin/sh") instead? What I meant above is to to the equivalent --expose=3D$SHELL by default when =E2=80=98SHELL=E2=80=99 is set. Anything wrong with that? If we did that, we could honor $SHELL even for --container (it=E2=80=99s al= ready honored in the other case.) Thanks, Ludo=E2=80=99.