From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14141 invoked by alias); 28 Apr 2018 10:14:15 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23369 Received: (qmail 2860 invoked by uid 1010); 28 Apr 2018 10:14:15 -0000 X-Qmail-Scanner-Diagnostics: from aurora-borealis.phear.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(94.242.205.164):SA:0(-1.9/5.0):. Processed in 2.034368 secs); 28 Apr 2018 10:14:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: eiro@phear.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: amavisd-new at phear.org DKIM-Filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org 86F6E104EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1524910444; bh=kmBorKfjd8atO5FaKQIPOgk0Nc40uXbSsZtqTKnP9ew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wendC6vdpWUYOz5YfzbOvrln3+DYIvjqKz4scZwjyw34Bc+Pg4tCYVHygG3ColK9B VN7oBUdc5SwXSzk/TUYnVTsxCtQkPX3oGq5YVb43uddstb2Er6BW8UgrUCvSTDF1Yq K88my12r1cR6gGkft9DY/Z+RErlJwuAJXNsH6dwum1yBTsgm9veWnWZFOm/7WzyiDT FAve8tokPy388+a9oyJCbeDK18pWjLYykta/whoIlmSlkRrNx5tYT8QGdNj8+1K3Oo Wz6RulbiHyCJiddNnywdtEUh0nHsXlsEWVyKFCjGznlbGjdA/b5ZYpE0U7gzAMXFuE cQTZnr3mJR19A== Date: Sat, 28 Apr 2018 12:14:02 +0200 From: Marc Chantreux To: Peter Stephenson Cc: Zsh Users Subject: Re: zsh at perl conference and few questions Message-ID: <20180428101402.GA16083@prometheus.u-strasbg.fr> References: <20180422204849.GA30387@prometheus.u-strasbg.fr> <20180423110642.0e0a5ebe@camnpupstephen.cam.scsc.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423110642.0e0a5ebe@camnpupstephen.cam.scsc.local> User-Agent: Mutt/1.9.5 (2018-04-13) hello, thanks for your reply > It's quite hard to ensure alternative syntax gets parsed consistently > --- I'm sure there are lots of inconsistencies --- but a lot of that is > hidden. well... i used it at least 15 years long without having problems so we can imagine it's consistent enought :) > > b) why the while loop can't take (( )) or single instruction as do > > list ? > > Maybe because it's missing the code at the bottom? should this code be merged in the zsh codebase ? :) > > c) it seems the (+) syntax can't be used outside file expansions > > (or did i miss something?) > > Yes, there's no general "execute a function that does something" in > other cases because there's no obvious definition of whit it would do > --- unlike globbing qualifiers which are there as a simple filter. is it a possible open discussion with zsh-workers ? it seems to me i have a clear idea of how things could work but i have now idea of how to implement it. maybe i should document it ? (or maybe there are some archives outthere about why it cannot be obvious?) > > d) is there a plan to have something like namespaces ? > It was first discussed a long time ago, but no one has bitten the > bullet. Simple minded namespaces --- allow dots in the variable works > --- are trivial, but the variable code is very complicated and working > out how to do it properly is a big task that no one has been prepared to > look at (saying "someone else ought to do this" does not count as > looking at it" :-)). in this case i wasn't talking about variables but only function names but i imagine it goes the same. once again thanks for your reply. regards marc