From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17925 invoked by alias); 31 Jul 2015 14:02:27 -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: 35964 Received: (qmail 27300 invoked from network); 31 Jul 2015 14:02:23 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p/pHoRRy9O7sfUkA9cO6UgYnur+wEqjUg/pnnAxlTBA=; b=m5v+u6RL9g/jMwM6IAziWgNmfksoDr6Ds1CBS9KlAabeJnsrlBKuJZi4SQCPMcxI+T J/GK7K3Ol4C2/kJy+h8p4PqvfgynulbJrTziKqWMpjOFc7/uUsfA8tgrICnpc/j6yFuT OGJBc7lxWLR3w+Eh0hRMXSwxj2r249WAsYm+oj0pbu/xKYZ7P5ajTQn+Cdkiq7pPSuwb XVKs0w6K2jTAUneSaU1/+k4s/NxERDC7sbQGNXz0KEntydc3u/xzv+g4YostGUHtnn7d hYOva16sKqaHVJn03kpxJknoxFVRrHRmQvI7pSHIzNG8Zg2DDho2RGVkLRpLGQ9Ez1Ro mxmg== MIME-Version: 1.0 X-Received: by 10.50.30.226 with SMTP id v2mr6315985igh.3.1438351340906; Fri, 31 Jul 2015 07:02:20 -0700 (PDT) In-Reply-To: <31988.1438346493@thecus.kiddle.eu> References: <558B5342.2090706@inlv.org> <150624184916.ZM19079@torch.brasslantern.com> <558B65EB.3060204@inlv.org> <150625003047.ZM19218@torch.brasslantern.com> <558D5E34.3020505@inlv.org> <20150627180230.5fda7e09@ntlworld.com> <558F397D.9030708@inlv.org> <20150628074837.GB4818@chaz.gmail.com> <16434.1435482953@thecus.kiddle.eu> <20150628140050.GA10570@chaz.gmail.com> <150628113814.ZM1638@torch.brasslantern.com> <23516.1437620218@thecus.kiddle.eu> <20150724115733.44531b77@pwslap01u.europe.root.pri> <31988.1438346493@thecus.kiddle.eu> Date: Fri, 31 Jul 2015 16:02:20 +0200 Message-ID: Subject: Re: PATCH: sysopen (was Re: '>>' does not create file if set -C (noclobber) is active) From: Mikael Magnusson To: Oliver Kiddle Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Fri, Jul 31, 2015 at 2:41 PM, Oliver Kiddle wrote: > Mikael wrote: >> Was there a reason the new commands were not made subcommands to >> zsystem? > > sysread and syswrite are not zsystem subcommands. > > What is the purpose of zsystem (as opposed to a direct sysflock)? Is it > that flock is not supported by some common systems? Ah, I didn't actually notice that sysread and syswrite were already there, and not added by your patch. I just saw zsystem after all the others in the manpage and thought it seemed a bit inconsistent. It would seem the only purpose is forward compatibility (eg, being able to use zsystem supports from a script and have it work on older zshs too). > Coverity noticed that I'd made one part more complicated than it needs > to be so this cleans that up (the !append was tautologous). Aha, I submitted the new build and saw the warning but couldn't really figure out what it was trying to tell me :). -- Mikael Magnusson