zsh-users
 help / color / mirror / code / Atom feed
* Parse time options
@ 2016-02-16 10:36 Sebastian Gniazdowski
  2016-02-16 12:11 ` Sebastian Gniazdowski
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Gniazdowski @ 2016-02-16 10:36 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-17  7:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-16 10:36 Parse time options Sebastian Gniazdowski
2016-02-16 12:11 ` Sebastian Gniazdowski
2016-02-16 19:01   ` Bart Schaefer
2016-02-17  7:11     ` Sebastian Gniazdowski

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).