unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Support for (system '("echo" "foo" "bar"))
@ 2003-10-28 21:15 Rob Browning
  2003-10-28 22:13 ` Paul Jarc
                   ` (2 more replies)
  0 siblings, 3 replies; 34+ messages in thread
From: Rob Browning @ 2003-10-28 21:15 UTC (permalink / raw)



I've just finished adding support for calling (system cmd) with a list
argument.  This causes it to use fork/execlp/waitpid nstead of calling
underlying OS's system() function.  This should be safer in cases
where it's acceptable because it avoids /bin/sh interpretation and the
attendant risks like sneaky IFS settings, unexpected expansions, etc.

This idea was borrowed from perl, and seems fairly useful, but I
wanted to see if there were any substantial objections before I
commit.  I suppose if this addition is acceptable, I should probably
also see about doing something similar to open-*-pipe.

Also, if people don't like this approach, perhaps there's some
alternate (and more suitable) way to accomplish something similar,
i.e. making it easy to more safely execute a sub-process when you
don't need shell interpolation.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2003-12-16 23:45 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-28 21:15 Support for (system '("echo" "foo" "bar")) Rob Browning
2003-10-28 22:13 ` Paul Jarc
2003-10-29  7:58 ` tomas
2003-10-29 13:58 ` Greg Troxel
2003-10-29 14:04   ` Rob Browning
2003-10-29 16:15     ` Marius Vollmer
2003-10-29 18:13       ` Rob Browning
2003-10-29 22:32         ` Paul Jarc
2003-10-30  1:41         ` Alex Shinn
2003-10-30 10:31           ` tomas
2003-10-30 20:09   ` Kevin Ryde
2003-10-31  5:51     ` Rob Browning
2003-10-31 17:05       ` Paul Jarc
2003-10-31 17:47         ` Rob Browning
2003-10-31 17:59           ` Paul Jarc
2003-10-31 20:15             ` Kevin Ryde
2003-10-31 20:31               ` Paul Jarc
2003-10-31 21:00                 ` Kevin Ryde
2003-10-31 21:18                   ` Paul Jarc
2003-10-31 21:48                     ` Kevin Ryde
2003-10-31 22:10                       ` Paul Jarc
2003-10-31 22:26                         ` Paul Jarc
2003-10-31 22:42                           ` Kevin Ryde
2003-10-31 22:50                         ` Kevin Ryde
2003-10-31 22:59                           ` Paul Jarc
2003-10-31 23:25                             ` Kevin Ryde
2003-10-31 23:34                               ` Paul Jarc
2003-11-02 21:13                                 ` Kevin Ryde
2003-11-10 19:25                                   ` Paul Jarc
2003-12-16 23:45                                     ` Paul Jarc
2003-10-31 22:49               ` Jonathan Bartlett
2003-10-31 20:19       ` Kevin Ryde
2003-10-31 20:37         ` Paul Jarc
2003-10-31 21:02           ` Rob Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).