From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16320 invoked by alias); 16 Feb 2016 10:36:35 -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: 21301 Received: (qmail 25281 invoked from network); 16 Feb 2016 10:36:34 -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: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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=XXQPwmdeCQUYgHA6QJuIR/A3J3c8zo0g5uwwhz6KVk4=; b=OmCSWrq9H/mQs4x2cuaF9iWpqJPOjKJOuXDDkv7IK38NDG8tEk5Ng8Oqmtnr+uklrT 40wDNgNSjXeoLOWPUiru9Z7zOiKm+O+aO4K3Rv8JbBsmYE+d6TLj80Ak2fzufMzyb4b6 3bJNN0fbwjjk1QpA1FCzJXAkQj+RD6vzvZy/mkd0Oj3LZ4D+FQern2KIu/HU3AbVIfHK 3kyFZsooisFUqGdH+DH1oJf9yyL87SpQ5iaK73DCSV+Q24Bk018UOZEeWtH1kjIqrS/u Sq3oGVA6wttoWzb8HnOh/QB/Bn7aiAQrRxUhtmGZcevkJFcYm0R7Dtw7UOLDqgzI3wt1 wV4g== X-Gm-Message-State: AG10YORp8D/dKz5lMlOKPgijrJ0VGKYWbrRSr+Z1xP4uYeLHrchJ6OF5pTwfZaGL1qf30noH8M2X+sSrodJ84w== X-Received: by 10.25.23.24 with SMTP id n24mr9375265lfi.66.1455618992914; Tue, 16 Feb 2016 02:36:32 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 16 Feb 2016 11:36:13 +0100 Message-ID: Subject: Parse time options To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=93 unsetting SH_GLOB inside script doesn't seem to make = (N) work. Best regards, Sebastian Gniazdowski