about summary refs log tree commit diff
path: root/Test/E01options.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-10-06 22:42:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-10-06 22:42:35 +0000
commitbbc409eefece558f9b24ea6960e15c0c3468422a (patch)
treec301f84bc174daa8a1e661b243062f09919fba14 /Test/E01options.ztst
parent530bbb503e7dc6b27fa9adb2423220293d2eed14 (diff)
downloadzsh-bbc409eefece558f9b24ea6960e15c0c3468422a.tar.gz
zsh-bbc409eefece558f9b24ea6960e15c0c3468422a.tar.xz
zsh-bbc409eefece558f9b24ea6960e15c0c3468422a.zip
19167: fix NUL at start of BRACE_CCL range.
Diffstat (limited to 'Test/E01options.ztst')
-rw-r--r--Test/E01options.ztst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index fe0f20ef1..c73af42cb 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -154,6 +154,19 @@
 >a b c d
 >{abcd}
 
+# Don't use NUL as a field separator in the following.
+  setopt braceccl
+  print {$'\0'-$'\5'} | IFS=' ' read -A chars
+  for c in $chars; do print $(( #c )); done
+  unsetopt braceccl
+0:BRACE_CCL option starting from NUL
+>0
+>1
+>2
+>3
+>4
+>5
+
   setopt bsdecho
   echo "histon\nimpington"
   echo -e "girton\ncottenham"