From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: Re: Support for (system '("echo" "foo" "bar")) Date: Wed, 29 Oct 2003 08:58:41 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20031029075841.GA27407@www> References: <87ad7l9i8h.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067414724 20921 80.91.224.253 (29 Oct 2003 08:05:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2003 08:05:24 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 29 09:05:22 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AElKT-0004Ws-00 for ; Wed, 29 Oct 2003 09:05:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AElIl-00081S-Ti for guile-devel@m.gmane.org; Wed, 29 Oct 2003 03:03:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AElFL-0006yd-2i for guile-devel@gnu.org; Wed, 29 Oct 2003 03:00:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AElEi-0005w4-AA for guile-devel@gnu.org; Wed, 29 Oct 2003 02:59:55 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AElEW-0005Xb-QQ for guile-devel@gnu.org; Wed, 29 Oct 2003 02:59:12 -0500 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by mx20.gnu.org with esmtp (Exim 4.24) id 1AElE4-00084P-Al for guile-devel@gnu.org; Wed, 29 Oct 2003 02:58:44 -0500 Original-Received: by www.elogos.de (Postfix, from userid 5002) id C463E14078; Wed, 29 Oct 2003 08:58:41 +0100 (CET) Original-To: Rob Browning Content-Disposition: inline In-Reply-To: <87ad7l9i8h.fsf@raven.i.defaultvalue.org> User-Agent: Mutt/1.5.3i X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2928 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2928 On Tue, Oct 28, 2003 at 03:15:26PM -0600, Rob Browning wrote: > > I've just finished adding support for calling (system cmd) with a list [...] > This idea was borrowed from perl, [...] If I get you right, you duplicate Perl's magic: when the arg is a singleton, use system() (with all the shell implications), when it's a list use execlp etc. While I have no issues with that (on the contrary, I think those things are quite handy in a scripting tool!), it ``sticks out'' a bit in Scheme. I'd expect `system' to be system(), and a function by another name to do the magic you describe. Why not system* or somesuch? (doing the single-element/several-element magic). If I got you right, that is. Regards -- tomas _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel