tee doesn't check noclobber?

Roy Smith roy at phri.nyu.edu
Sat May 26 09:53:27 AEST 1990


In <476 at cvbnetPrime.COM> jsulliva at cvbnet.UUCP (Jeff Sullivan) writes:
> I am using SunOS 4.0.3 and have noticed that tee doesn't check the
> noclobber shell variable in /bin/csh.

	Well, that makes sense since noclobber is a shell variable and tee
isn't part of the shell, so it has no way to find out what the value of
noclobber is.  One could export noclobber as an environment variable and
rewrite tee to look at that, but who wants to carry the whole world around
in their environment?  Lots of programs take output filenames as arguments
(dd, cp, mv, etc).  Do you want all of them to look at noclobber too?
--
Roy Smith, Public Health Research Institute
455 First Avenue, New York, NY 10016
roy at alanine.phri.nyu.edu -OR- {att,cmcl2,rutgers,hombre}!phri!roy
"Arcane?  Did you say arcane?  It wouldn't be Unix if it wasn't arcane!"



More information about the Comp.unix.wizards mailing list