[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for (system '("echo" "foo" "bar"))

From: tomas
Subject: Re: Support for (system '("echo" "foo" "bar"))
Date: Wed, 29 Oct 2003 08:58:41 +0100
User-agent: Mutt/1.5.3i

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.

-- tomas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]