Csh brain damaged, but then you already knew that.

Guy Harris guy at auspex.auspex.com
Sun Sep 17 05:25:00 AEST 1989


 >This happened on a vax running 4.3BSD or something like it:  
 >
 >watdcsu % history | tail -5
 >tail: : open of temporary file "5.a" failed -- Permission denied.
 >
 >It also happened on a Sun running SunOS4.0.3:
 >
 >shine22% history | tail -5
 >tail: : open of temporary file "7.a" failed -- Read-only file system.
 >
 >The problem seems to be that csh tries to create a temporary file in
 >the current directory, and in the above two cases I didn't have the
 >necessary permissions.

Wanna bet?  I just tried running "history | tail -5" under "csh" under
SunOS 4.0.1 in a directory to which I didn't have write permission, and
it worked just fine.

What's more, I couldn't find any error message string like that in the
source to the 4.3BSD "csh" *NOR* in the source to the 4.3BSD "tail", and
"strings" didn't find it in the SunOS 4.0.1 binaries, either.

Maybe you've got some mutant version of "csh" or "tail" there, and
*that* version is the putatively "brain-damaged" oone?



More information about the Comp.unix.wizards mailing list