[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Support for (system '("echo" "foo" "bar"))
From: |
Rob Browning |
Subject: |
Support for (system '("echo" "foo" "bar")) |
Date: |
Tue, 28 Oct 2003 15:15:26 -0600 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
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
- Support for (system '("echo" "foo" "bar")),
Rob Browning <=
- Re: Support for (system '("echo" "foo" "bar")), Paul Jarc, 2003/10/28
- Re: Support for (system '("echo" "foo" "bar")), tomas, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), Greg Troxel, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), Rob Browning, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), Marius Vollmer, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), Rob Browning, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), Paul Jarc, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), Alex Shinn, 2003/10/29
- Re: Support for (system '("echo" "foo" "bar")), tomas, 2003/10/30
Re: Support for (system '("echo" "foo" "bar")), Kevin Ryde, 2003/10/30