From 699dfdd0ea25d01177f603461473f4e0c88f7378 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 6 Feb 2020 12:47:39 +0000 Subject: 45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features. --- Test/V01zmodload.ztst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Test') diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst index 1bd8c1900..6a4e34d2d 100644 --- a/Test/V01zmodload.ztst +++ b/Test/V01zmodload.ztst @@ -348,6 +348,20 @@ ?(eval):6: unknown function: systell ?(eval):9: file descriptor out of range + $ZTST_testdir/../Src/zsh -fc ' + zmodload zsh/zutil + zmodload -Fal zsh/zutil | grep parse + zmodload -u zsh/zutil + # + zmodload -Fa zsh/zutil -b:zregexparse + zmodload zsh/zutil + zmodload -Fal zsh/zutil | grep parse >&2 + ' +0:zmodload -Fa can disable features from being loaded +>b:zparseopts +>b:zregexparse +?b:zparseopts + %clean eval "$deps" -- cgit 1.4.1