Xref: utzoo comp.bugs.sys5:1461 comp.unix.shell:1359 Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.bugs.sys5,comp.unix.shell Subject: Re: Weird shell bug could be useful Message-ID: <1991Jan30.183128.2762@convex.com> Date: 30 Jan 91 18:31:28 GMT References: <618@tndsyd.oz> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 29 Nntp-Posting-Host: pixel.convex.com From the keyboard of root@tndsyd.oz (the main man): :Try this out: : $ echo > foo ' : > garbage : > ... : > ... : > ... : > ... : > ' : $ : :Then cat foo. This is a wierd bug but could be used instead of: : cat << ! > foo : garbage : ... : ... : ... : ... : ! That's not a bug -- it's a feature. That the csh doesn't do the right thing here is its problem; real shells are defined to behave in just this way. If it ever stops working, complain. --tom -- "Hey, did you hear Stallman has replaced /vmunix with /vmunix.el? Now he can finally have the whole O/S built-in to his editor like he always wanted!" --me (Tom Christiansen )