View Single Post
Posts: 18 | Thanked: 72 times | Joined on Sep 2008
#223
Originally Posted by No!No!No!Yes! View Post
Uhm ... I believe we'll lose backward compatibility for scripts if I implement this new g_spawn_async_with_pipes function.

I suppose commands like this will not be acceptable any more:

Code:
export s="foo"; wget -O - "http://www.acme.inc" | awk '{print $1 $2}'
Why wouldn't we be able to use commands like that? There's no reason that g_spawn_async_with_pipes() shouldn't be able to kick off a complex shell command line. You'd just need to add the "/bin/sh" "-c" arguments before the command line string... I'm pretty sure that's what popen() does behind the scenes, anyway.
 

The Following User Says Thank You to Cirne For This Useful Post: