🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1131

Another bug with csh - `cat /tmp/a`

#1131
From: Bruce G. Barnett
Date: Thu, 18 Aug 1988 20:14
33 lines
1122 bytes
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 	<barnett@ge-crd.ARPA> <barnett@steinmetz.UUCP>
				uunet!steinmetz!barnett
Technical Details
Message-ID: <5144@vdsvax.steinmetz.ge.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!steinmetz!vdsvax!barnett

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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