From: ovek AT arcticnet DOT no (Ove Kaaven) Newsgroups: comp.os.msdos.djgpp Subject: Re: Starnge rm behavour Date: Fri, 21 Feb 1997 07:06:16 GMT Organization: Vplan Programvare AS Lines: 16 Message-ID: <5eof07$5ef$1@troll.powertech.no> References: <189BCEB38C6 AT csd DOT inp DOT nsk DOT su> <330A4A9A DOT 2BE1 AT cs DOT com> <330AAE6B DOT 537A AT cs DOT com> NNTP-Posting-Host: alwayscold.darkness.arcticnet.no To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp "John M. Aldrich" 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?