From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4734 invoked by alias); 27 Jun 2015 01:54:17 -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: 35625 Received: (qmail 17220 invoked from network); 27 Jun 2015 01:54:13 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 Message-ID: <558E0242.4050300@inlv.org> Date: Sat, 27 Jun 2015 03:54:10 +0200 From: Martijn Dekker User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: zsh-workers@zsh.org 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> <558D5E34.3020505@inlv.org> <150626131522.ZM21498@torch.brasslantern.com> In-Reply-To: <150626131522.ZM21498@torch.brasslantern.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Bart Schaefer schreef op 26-06-15 om 22:15: > The goal of "emulate sh" is to provide a Bourne-sh compatible environment, > for the most part. I see. Since POSIX is now the lowest common denominator for the overwhelming majority of Unix-like systems out there, I suppose I was just assuming that was the intended target by now. > Just for example, neither POSIX_ARGZERO nor POSIX_CD is turned on by > default in any of the "emulate" modes, and there are a number of other > POSIX-isms that are not (yet, at least) supported at all. Hmm. On my system (zsh 5.0.8) POSIX_CD is in fact turned on by 'emulate sh'. The only options I've found so far that aren't turned on, but should be for POSIX compliance, are POSIX_ARGZERO (as you say), and MULTIBYTE (but that was changed in git shortly after 5.0.8 was released). So far, I've found that zsh 5.0.8 under 'emulate sh -o POSIX_ARGZERO -o MULTIBYTE' is very close to a complete POSIX shell. I'd be very interested to know exactly what other POSIX-isms are not yet supported by zsh, so I can implement any necessary tests and workarounds in the shell library I'm developing. > That said, I'm not trying to shut down discussion of this issue, I'm just > pointing out that we're going to be choosing a least of evils whether we > do something or do nothing. I understand. Thanks for your time and consideration in any case. - Martijn