This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [cs] pipe infrastructure support


DJ Delorie <dj@redhat.com> writes:

> > Or maybe I'm missing something.
> 
> The problem with popen is command line quoting and wildcard expansion.
> pexecute() doesn't, popen() does.  We really want an API that takes an
> argv[], not a char*.
> 
> If we had a popenv() that took an argv[], that would be doable, but it
> would require platform-specific quoting rules and such.

Yes, I understand that we can't actually use popen itself.  But we can
use a function which does that sort of thing.  It's trivial to write
on Unix.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]