Interesting bug in csh

Maarten Litmaath maart at cs.vu.nl
Wed Mar 15 07:53:16 AEST 1989


pete at escher.intel.com (Peter Johnson ~) writes:
\% echo $SHELL:t
\/bin/csh:t

Correct: according to the manual `:' modifiers don't work on environment
variables.

\% echo ${SHELL:t}
\Variable syntax.

Correct too: the string "SHELL:t" doesn't have the form of an environment
variable, namely "[_a-zA-Z][_a-zA-Z0-9]*".

\% ls
\/bin/cshls: Command not found

How's that famous record by Johnny Ray again? "Crying", wasn't it?
Anyway, you get the idea.
-- 
 Those against Rushdie haven't          |Maarten Litmaath @ VU Amsterdam:
   learned anything from the Dark Ages. |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.wizards mailing list