[net.bugs.4bsd] Strange behavior with filenames

spaf@gatech.CSNET (Gene Spafford) (07/02/85)

Here's a good one for you.  I'd like to know if anyone else has
encountered this one before -- it might save me from bashing my head
against the keyboard some.

We're running 4.2 BSD (the BRL version) on all our Vaxen.  If I create
a file whose name begins with a ":" and then try to "cat" it, it works
on the 780 but gives a "file: Error 0" message on the 750.  This also
happens on another site's 750 (in fact, it was discovered there --
credit to tas@dcc1).

Does this happen to anyone else out there?  Is this a well known and
beloved bug?  Am I hallucinating again? Anyone know a fix?
-- 
Gene "3 months and holding" Spafford
The Clouds Project, School of ICS, Georgia Tech, Atlanta GA 30332
CSNet:	Spaf @ GATech		ARPA:	Spaf%GATech.CSNet @ CSNet-Relay.ARPA
uucp:	...!{akgua,allegra,hplabs,ihnp4,linus,seismo,ulysses}!gatech!spaf

spaf@gatech.CSNET (Gene Spafford) (07/04/85)

Thanks for the responses.  The problem seems to lie with the BRL 3.0
distribution.  Their version of "cat", as shipped, has the bug
in it.  If we recompile /bin/cat, we get something lots smaller
than the BRL distribution version, with a much different set of
embedded character strings, and which doesn't have the bug.

The reason it didn't happen on our 780 was because someone else 
loaded the standard 4.2 /bin/cat on top of the BRL version (from tape)
a) without telling me, and b) without setting the modification time
to something recent.  Thus, I got misled.

Thanks for all the responses.  It's fixed now.  If you're running a
BRL distribution, check your /bin/cat command for odd behavior.

We now return you to your net, already in progress.
-- 
Gene "3 months and holding" Spafford
The Clouds Project, School of ICS, Georgia Tech, Atlanta GA 30332
CSNet:	Spaf @ GATech		ARPA:	Spaf%GATech.CSNet @ CSNet-Relay.ARPA
uucp:	...!{akgua,allegra,hplabs,ihnp4,linus,seismo,ulysses}!gatech!spaf

sean@ukma.UUCP (Sean Casey) (07/09/85)

In article <406@gatech.CSNET> spaf@gatech.CSNET (Gene Spafford) writes:
>We're running 4.2 BSD (the BRL version) on all our Vaxen.  If I create
>a file whose name begins with a ":" and then try to "cat" it, it works
>on the 780 but gives a "file: Error 0" message on the 750.  This also
>happens on another site's 750 (in fact, it was discovered there --
>credit to tas@dcc1).

We're running BRL Unix (4.2) on a 750 and don't have that problem.
-- 

-  Sean Casey				UUCP:	sean@ukma.UUCP   or
-  Department of Mathematics			{cbosgd,anlams,hasmed}!ukma!sean
-  University of Kentucky		ARPA:	ukma!sean@ANL-MCS.ARPA