Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!rpi!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.bugs.sys5 Subject: Re: Nasty bug in release 4 Bourne shell Keywords: Bourne shell, exec, redirection Message-ID: <2771@sixhub.UUCP> Date: 31 Dec 90 04:07:12 GMT References: Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 22 In article andy@xwkg.Icom.Com (Andrew H. Marrinson) writes: | If you run this with the input | | file1 | file2 | | You get a single file, file1, containing the two lines Actually, if you forget to put "exec >/dev/tty" after the loop you will get a lot more than two lines... | I got this result using Dell Unix. I suspect that it is an AT&T bug, | though. I can't imagine Dell fooled with Bourne shell at all. Let me | know if there is a release 4 System V out there that doesn't do this! Use your ksh! Seems to work there. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me