🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #340

Re: Wierd shell bug could be useful

#340
From: Harald.Eikrem
Date: Wed, 30 Jan 1991 20:06
50 lines
1235 bytes
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
Technical Details
Message-ID: <1991Jan30.210609*Harald.Eikrem@elab-runit.sintef.no>
Path: arc1-ca.pugleaf.net!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
References: <618@tndsyd.oz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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