Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: '>>' does not create file if set -C (noclobber) is active



On 6/25/15 12:00 PM, Bart Schaefer wrote:
> On Jun 25,  3:04pm, Stephane Chazelas wrote:
> } Subject: Re: '>>' does not create file if set -C (noclobber) is active
> }
> } Though that's initially a csh feature (from the start: 1979),
> 
> Well, yeah, but the odds that POSIX adopted it from csh are pretty low.
> Zsh adopted it from csh.

ksh88 picked up noclobber from csh, but used `set -o noclobber' and added
the >| redirection.  Posix.2 invented `set -C'.  Bash adopted noclobber
from ksh in 1990 and set -C/-o noclobber from a pre-1992 Posix.2 draft in
1991.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@xxxxxxxx    http://cnswww.cns.cwru.edu/~chet/



Messages sorted by: Reverse Date, Date, Thread, Author