question about csh quoting

Morris Keesan keesan at bbncca.ARPA
Wed May 9 00:38:27 AEST 1984


------------------------------
>>>From: sloane at noscvax.UUCP
>>>    .
>>>    .
>>>When I tried that (4.2bsd with csh) it did the following:
>>>
>>>		   %echo "Don't do that!"
>>>		   ": Event not found.
>>>		   %
>>>
>>>Is this something different in the c-shell, or is this an error in
>>>the c-shell?

    This is something different in csh.  An exclamation point (!) introduces
a history event.  In this case, you were referring to history event "", which
was not found.  One type of quotes does indeed protect the other kind, even
in csh, but "" doesn't protect !.
-- 
					Morris M. Keesan
					{decvax,linus,wjh12,ima}!bbncca!keesan
					keesan @ BBN-UNIX.ARPA



More information about the Comp.unix mailing list