[comp.bugs.sys5] Weird shell bug could be useful

tchrist@convex.COM (Tom Christiansen) (01/31/91)

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 <tchrist@convex.com>)