Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Parse time options
- X-seq: zsh-users 21301
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Parse time options
- Date: Tue, 16 Feb 2016 11:36:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=XXQPwmdeCQUYgHA6QJuIR/A3J3c8zo0g5uwwhz6KVk4=; b=hdH+BmZK/5X12PGNiLDdn847y+RDdk2DCk/cQ4onnCexh7divV6i56hyjJZzXwsz1R JXzS6h+VniGNPVgUg9cRtu8/KBy/91hQh6oX9RMIV9Q3gQgWL8lRF3aYTEnRolL2bDJY ECxNYc5NMKDh7UlFXWeL//g+MnxvjkNRDJpULYRQRQyRirIOJPyOjZhWIKNZFacNj8J4 E3YqRmw71AGA21ICf+j/9NUcPkzSADBomhAyh+2AiEiMVe1EvoHilELkjzX6iTcrIRpZ 9lh6ZSOHGoftJ35WxvZe3opO/9fZ66wjaeaYRHrT/xJteIRib9ASDj55TSRKtwR4Ysme 7+AQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author