Another bug with csh - `cat /tmp/a`
Felix Lee
flee at blitz
Mon Aug 29 09:49:19 AEST 1988
In <5144 at vdsvax.steinmetz.ge.com>, Bruce G. Barnett writes:
> echo ls >/tmp/a
> `cat /tmp/a`
> results:
> ls: Command not found.
This is because csh tries to glob the command name: if you type
"f*" and "f*" expands (uniquely) to "foo", then csh will execute
"foo" without ever looking at your PATH. ("foo" will get executed
even if "." isn't in your PATH.)
And the globbing routine also tries backquote substitution. So
the globbing succeeds, and csh ignores your PATH.
Intuitively obvious, no?
--
Felix Lee *!psuvax1!flee
More information about the Comp.unix.questions
mailing list