| Store | Cart

Re: system on Windows (Was: Memory leak in backticks and system)

From: Aristotle Pagaltzis <paga...@gmx.de>
Fri, 18 Apr 2014 01:23:23 +0200
* Smylers <Smyl...@stripey.com> [2014-04-17 19:40]:
> Currently perldoc -f system only mentions the system PROGRAM LIST> syntax as being for lying to a program about its name — something> which is considerably more niche than wanting to run an external> command, and do so safely on any platform. It says to see exec for the> details.

There is another use that I’ve needed far more often: if LIST can ever
be shorter than 2 elements – variable-length, in all likelihood –, you
need the `system PROGRAM LIST` form to force bypassing the shell.

Likewise with `exec`.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Recent Messages in this Thread
Jesper Jørgen Persson Apr 08, 2014 12:57 pm
Shlomi Fish Apr 11, 2014 08:02 am
Shlomi Fish Apr 11, 2014 08:35 am
bulk88 Apr 11, 2014 10:35 am
Eric Brine Apr 11, 2014 05:46 pm
Shlomi Fish Apr 17, 2014 10:12 am
Eric Brine Apr 17, 2014 03:53 pm
Thomas Sibley Apr 17, 2014 04:22 pm
Curtis Jewell Apr 17, 2014 05:34 pm
Curtis Jewell Apr 17, 2014 05:36 pm
Thomas Sibley Apr 18, 2014 03:29 am
Smylers Apr 17, 2014 05:37 pm
Aristotle Pagaltzis Apr 17, 2014 11:23 pm
Messages in this thread