zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Parse time options
Date: Tue, 16 Feb 2016 11:36:13 +0100	[thread overview]
Message-ID: <CAKc7PVAunW4fo2BmUw-mRpj0UcXsuAEh=N6s4FOk0nx_L-FS0A@mail.gmail.com> (raw)

Hello,
I'm writing a thing to stress test scripts. Basically:

for i in "${STRESS_TEST_OPTIONS[@]}"; do
    setopt "$i"
    print -n "Stress-testing ${fname:t} for option $i "
    zcompile -R "$fname" 2>/dev/null && {
        print "[${mycolors[success]}Success${mycolors[rst]}]"
    } || {
        print "[${mycolors[failure]}Fail${mycolors[rst]}]"
    }
   unsetopt "$i"
done

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.
SH_GLOB doesn't seem to be parse-time option, it apparently just
disables '(' ')' at run time, except maybe for situations where e.g.
(N) is done – unsetting SH_GLOB inside script doesn't seem to make (N)
work.

Best regards,
Sebastian Gniazdowski


             reply	other threads:[~2016-02-16 10:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 10:36 Sebastian Gniazdowski [this message]
2016-02-16 12:11 ` Sebastian Gniazdowski
2016-02-16 19:01   ` Bart Schaefer
2016-02-17  7:11     ` Sebastian Gniazdowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKc7PVAunW4fo2BmUw-mRpj0UcXsuAEh=N6s4FOk0nx_L-FS0A@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).