From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: Using 'system*' instead of 'system' in 'guix environment' Date: Thu, 08 Oct 2015 17:09:37 +0200 Message-ID: <87io6h75xq.fsf@T420.taylan> References: <87io6iqhbt.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87ziztyext.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkKVW-0004mw-22 for guix-devel@gnu.org; Thu, 08 Oct 2015 19:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkKVV-0004YH-1E for guix-devel@gnu.org; Thu, 08 Oct 2015 19:21:53 -0400 In-Reply-To: (David Thompson's message of "Thu, 8 Oct 2015 08:41:17 -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 "Thompson, David" writes: > guix environment --ad-hoc guile -- sh -c "cd bar/; guile -c '(frob)'" AFAIUI that's equivalent to guix environment --ad-hoc guile -E "cd bar/; guile -c '(frob)'" (Or was the intent to deprecate -E?) Therefore I'd agree that doing no string join in the '--' case is good, since the string joining variant is already covered, for convenience, by the '-E' variant. However, the '(or (container-shell) "/bin/sh")' thing could be done for the '-E' variant, no? So we'd have the pure system* variant with '--', and the string joining variant with '-E' which might pass the joined string to sh or to some other shell. (Though those shells will need to agree on the '-c' bit.) Taylan