Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!msunews!news From: Ed Symanzik <zik@pilot.msu.edu> Newsgroups: comp.unix.bsd.freebsd.misc Subject: cat foo* > foo.bar causes infinite loop Date: Wed, 13 Nov 1996 13:23:50 -0500 Organization: Michigan State University Lines: 8 Message-ID: <328A1236.32C4@pilot.msu.edu> NNTP-Posting-Host: laurel.cl.msu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) If I create three files foo1, foo2, and foo3 then run the command cat foo* > foo.bar in csh I get an infinite loop (at least until the partition fills up). Seems to me that '*' should be evaluated before new files are created. I have seen systems that don't behave this way give errors similar to "can't open foo.bar for both input and output".