about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-02-06 12:47:39 +0000
committerDaniel Shahaf <danielsh@apache.org>2020-02-07 12:44:53 +0000
commit699dfdd0ea25d01177f603461473f4e0c88f7378 (patch)
treeb192ab69a0176a51499c231125f4ccdba61f40ad /Test
parent643de931640e01aa246723d2038328ef33737965 (diff)
downloadzsh-699dfdd0ea25d01177f603461473f4e0c88f7378.tar.gz
zsh-699dfdd0ea25d01177f603461473f4e0c88f7378.tar.xz
zsh-699dfdd0ea25d01177f603461473f4e0c88f7378.zip
45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features.
Diffstat (limited to 'Test')
-rw-r--r--Test/V01zmodload.ztst14
1 files changed, 14 insertions, 0 deletions
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"