From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28255 invoked by alias); 17 Feb 2016 07:11:52 -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: X-Seq: 21305 Received: (qmail 19046 invoked from network); 17 Feb 2016 07:11:50 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=QAkqhTSElBVx9ZBhney6dx2gps23Psi5cI77jF8sbA8=; b=qnNw4iRZDyIX3koMuM21VLWVh0Vus5xEjvvZKzuDwskkhVv2vBIZU/qAs3zB3Il8Hq ybQN9jVuWcDS4E/NYxAsA3vuWtqYxTFH6aaXKzEX3qB4N+eJQzvzBPLBMSGigLVG8PiD 4OenPPuECUa6TXrkTlkav51i4XD4+lf1mDG3WVEauvhj3ZscMBxBTYfw8fz9cHz8EhlU dp658VB1fRlYfjVMAEwvQwmXU/zDwGG8t1NcHdLkFp67k3U7ejIZ0NNXoeynpxbiM6oS Jdf+77Ce8MJv62YwHMhkJdtuHL23V96JEQVXD7Xblt3a3WyGs/gHU8OhLWR2hEjbzWJV Zjfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=QAkqhTSElBVx9ZBhney6dx2gps23Psi5cI77jF8sbA8=; b=HSvpdutfhLHHcNJv54VfY/LGEGQxZc1hNyYc3KJgDQL9ooESDP2w7DWBYUXTbD+NYR olG1sHueSmGngh1miAHRo8PpJl3yudIWgCC9+CcvAmz8pi9kTZqGskgoGnLEhTUqyDDC zz+llcMPXLNXr1/QTFvnZV88+JKzHrbt+RUR3mNwmFBlN7VfdhoBBtaYaExAOeCpShHg DhVNd2bEX9d/JApYiI/A7umX84jQUNKpCDgOdSolOCDL6jXVUFtw3nxt2YXf88nvT+Kx 3CbIT+nwVm3TH/CRxK3wMlcSYpyQJc1YvrglpEcfsERdsOUvoGwTnCG+dv2InnaoEzzC DOIQ== X-Gm-Message-State: AG10YOTRz9e/R2YweSkv19L1s6esj9pMO67qcvVDb+IZqPExEvFsQ8e75ggSSNHgW6HXkQZSvbcIHvKmNbgLDg== X-Received: by 10.25.151.149 with SMTP id z143mr514lfd.72.1455693107919; Tue, 16 Feb 2016 23:11:47 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <160216110149.ZM31855@torch.brasslantern.com> References: <160216110149.ZM31855@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Wed, 17 Feb 2016 08:11:28 +0100 Message-ID: Subject: Re: Parse time options To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On 16 February 2016 at 20:01, Bart Schaefer wrote: > On Feb 16, 11:36am, Sebastian Gniazdowski wrote: > } > } for i in "${STRESS_TEST_OPTIONS[@]}"; do > } setopt "$i" > } zcompile -R "$fname" 2>/dev/null > } unsetopt "$i" > } done > > Presumably you're starting from a state where none of these options are > set, so that it's correct to unsetopt them again? > > } This seems to work fine with NO_SHORT_LOOPS and IGNORE_BRACES. Is > } there one other option that would break zcompile in case of some > } forbidden (by the option) syntax? Except maybe for the CSH_* options. > > Well, there's NO_BARE_GLOB_QUAL, IGNORE_CLOSE_BRACES, MULTI_FUNC_DEF, > maybe C_PRECEDENCES, possibly POSIX_IDENTIFIERS. Thanks. In my "collection" (test collection) of 51 plugins I didn't found one that wouldn't compile with the options: https://asciinema.org/a/ana24je5nnvr8iy9wp8anmptg However a simple test file revealed that indeed MULTI_FUNC_DEF can make compilation fail. Couldn't construct test for NO_BARE_GLOB_QUAL and C_PRECEDENCES, already am using IGNORE_CLOSE_BRACES, and POSIX_IDENTIFIERS seems to not affect zcompile. Best regards, Sebastian Gniazdowski