From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1883 invoked by alias); 25 Jun 2015 19:26:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35611 Received: (qmail 22993 invoked from network); 25 Jun 2015 19:26:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 Message-ID: <558C546A.50004@case.edu> Date: Thu, 25 Jun 2015 15:20:10 -0400 From: Chet Ramey Reply-To: chet.ramey@case.edu User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Bart Schaefer , zsh-workers@zsh.org CC: chet.ramey@case.edu Subject: Re: '>>' does not create file if set -C (noclobber) is active References: <558B5342.2090706@inlv.org> <150624184916.ZM19079@torch.brasslantern.com> <558B65EB.3060204@inlv.org> <150625003047.ZM19218@torch.brasslantern.com> <20150625140432.GD19558@chaz.gmail.com> <150625090033.ZM20187@torch.brasslantern.com> In-Reply-To: <150625090033.ZM20187@torch.brasslantern.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/50, host=mpv5.cwru.edu X-Junkmail-Whitelist: YES (by domain whitelist at mpv2.tis.cwru.edu) 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@case.edu http://cnswww.cns.cwru.edu/~chet/