From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: Bug in redir. Date: Sat, 16 Jun 2001 11:11:10 -0300 Lines: 53 Message-ID: <3B2B68FE.8FD91B94@uol.com.br> References: <3b2b5a03 DOT 169572586 AT news DOT primus DOT ca> NNTP-Posting-Host: 200-221-14-196.dsl-sp.uol.com.br (200.221.14.196) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 992700969 9473277 200.221.14.196 (16 [39218]) X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: pt-BR,es,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Graaagh the Mighty wrote: > > Create something called centers.exe that writes "Hello, world.\n" to > stdout. > > Now run each of the following at the prompt in sequence: > > redir -o foo.txt -eo centers > redir -o centers.txt -eo centers > > The result? > > foo.txt: > Hello, world. > > centers.txt: > Bad command or filename. Which version? See below: C:\users\csrabak\Work>redir --version Redir 2.1 Copyright (C) 1995 - 1999 DJ Delorie (dj AT delorie DOT com) Distribute freely. There is NO WARRANTY. This program is protected by the GNU General Public License. C:\users\csrabak\Work>gcc -o centers.exe centers.c C:\users\csrabak\Work>centers Hello, world. C:\users\csrabak\Work>redir -o foo.txt -eo centers C:\users\csrabak\Work>cat foo.txt Hello, world. C:\users\csrabak\Work>redir -o centers.txt -eo centers C:\users\csrabak\Work>cat centers.txt Hello, world. HTH Cesar > > -- > Bill Gates: "No computer will ever need more than 640K of RAM." -- 1980 > "There's nobody getting rich writing software that I know of." -- 1980 > "This antitrust thing will blow over." -- 1998 > Combine neo, an underscore, and one thousand sixty-one to make my hotmail addy.