tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rpcgen with env variable CPP set to "cc -E"

> Here is my proposal, with a popen().

Does this actually work?  Based on the manpage, popen() expects a shell
command line as a single string, not the argv array you appear to be
passing it.  Am I missing something?

Furthermore, if you do construct a shell command, won't that lose when
the filename in question contains shell metacharacters such as
whitespace?  (This may not be enough of a problem in practice to nix
the technique, but IMO should be loudly warned about in the relevant

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML     
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index