Weird shell bug could be useful

Tom Christiansen tchrist at convex.COM
Thu Jan 31 05:31:28 AEST 1991


>From the keyboard of root at 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 at convex.com>)



More information about the Comp.unix.shell mailing list