tee doesn't check noclobber?

Jeff Sullivan, x4482 MS 14-13 jsulliva at cvbnet.UUCP
Fri May 25 01:36:46 AEST 1990


 I am using SunOS 4.0.3 and have noticed that tee doesn't
 check the noclobber shell variable in /bin/csh. That is,
	set noclobber
	command > temp
	command > temp
	temp: File exists.	(doesn't overwrite)
	command | tee temp	(OVERWRITES the file)

 I'm not complaining, I USE that "feature". It beats
 typing "command >! temp".

 I would expect this to be true in most BSD flavors, but am
 not sure about SYS V. Is this a feature, a bug or a design
 limitation?

 Just curious,

Jeff Sullivan | Computervision/Prime | jsulliva at cvbnet.prime.com
"Go Bruins!"  | Bedford, MA    01730 | sun!cvbnet!jsulliva



More information about the Comp.unix.wizards mailing list