Xref: utzoo comp.bugs.sys5:1464 comp.unix.shell:1364 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!kth.se!ugle.unit.no!news From: Harald.Eikrem@elab-runit.sintef.no Newsgroups: comp.bugs.sys5,comp.unix.shell Subject: Re: Wierd shell bug could be useful Message-ID: <1991Jan30.210609*Harald.Eikrem@elab-runit.sintef.no> Date: 30 Jan 91 20:06:09 GMT References: <618@tndsyd.oz> Sender: news@ugle.unit.no Organization: ELAB-RUNIT (SINTEF), Trondheim, Norway. Lines: 50 In-Reply-To: root@tndsyd.oz's message of 31 Jan 91 03:55:05 GMT said root@tndsyd.oz [which is no valid internet mail address --H.E]: > Try this out: > $ echo > foo ' > > garbage > > ... > > ... > > ... > > ... > > ' > $ > > Then cat foo. This is a wierd bug but could be used instead of: > cat << ! > foo > garbage > ... > ... > ... > ... > ! > > A user friendly bug !!! What do you mean is a bug here? This behaves perfecly normal to me, and of course the two methods produce different results. $ echo > foo ' > bar > and > grill > ' $ cat foo bar and grill $ cat << ! > foo > bar > and > grill > ! $ cat foo bar and grill $ --Harald E