quoting $ in the Csh

Maarten Litmaath maart at cs.vu.nl
Tue Dec 13 05:04:22 AEST 1988


schmidt at siam.ics.uci.edu (Doug Schmidt) writes:
\alias sqz "grep -v '^[ ^I]*$'"

\The cshell complains about ``variable syntax,'' since it appears to be
\attempting to expand $'.

Csh's syntax + parser are SICK! Csh is an example of `loving your enemy' :-)

The following trick will do it:

	alias	sqz	"grep -v '^[ ^I]*'"$

A `lonely' $ is left alone.
-- 
fcntl(fd, F_SETFL, FNDELAY):          |Maarten Litmaath @ VU Amsterdam:
      let's go weepin' in the corner! |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list