Xref: utzoo comp.bugs.4bsd:911 comp.unix.questions:8881
Path: utzoo!utgpu!attcan!uunet!steinmetz!vdsvax!barnett
From: barnett@vdsvax.steinmetz.ge.com (Bruce G. Barnett)
Newsgroups: comp.bugs.4bsd,comp.unix.questions
Subject: Another bug with csh - `cat /tmp/a`
Keywords: Ad-hoc parsing csh bug
Message-ID: <5144@vdsvax.steinmetz.ge.com>
Date: 18 Aug 88 20:14:45 GMT
Reply-To: barnett@steinmetz.ge.com (Bruce G. Barnett)
Organization: General Electric CRD, Schenectady, NY
Lines: 33
I think I have found another bug with csh (surprise! :-)
Systems: SunOS 4.0, Ultrix 2.3. any many many more.
try this:
echo ls >/tmp/a
`cat /tmp/a`
results:
ls: Command not found.
try
echo /bin/ls >/tmp/a
`cat /tmp/a` works
But
`/tmp/a`
gives:
a: permission denied
: permission denied
Why two errors?
Now when I try:
`junkname`
where junkname does not exist, I get:
junkname: Command not found
/usr/ucb/: Permission denied
Sometimes the directory is different from /usr/ucb/:
Let's hear it for ad-hoc parsing. Is this a known bug?
--
Bruce G. Barnett
uunet!steinmetz!barnett