Mail Archives: djgpp/1997/02/23/20:22:19
"John M. Aldrich" <fighteer AT cs DOT com> wrote:
>The problem seems to be occurring because 'redir' doesn't perform
>wildcard expansion on the command line it gets passed, yet it uses
>spawnvp() to invoke the indicated program with the remaining arguments.
>Obviously, this breaks any program which gets passed a wildcard,
>including 'rm'.
>I _think_ the problem can be solved by making redir call system()
>instead of spawnvp(). This would however require it to essentially
>rebuild the command line from its components. It's not hard to do, but
>would make redir take up slightly more memory at runtime.
Isn't it easier to just let redir expand the wildcards?
- Raw text -