about summary refs log tree commit diff
path: root/Test/D07multibyte.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-07-24 18:35:49 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-07-24 18:35:49 +0000
commit72f0b14a0448ecf50935a1f6c90337c3d1c969af (patch)
treebe65fa2ba994792e2f5a4764b3fbe71b91af7778 /Test/D07multibyte.ztst
parent2c8142351681124e8ce5f8f44a8539ae4e7bbe33 (diff)
downloadzsh-72f0b14a0448ecf50935a1f6c90337c3d1c969af.tar.gz
zsh-72f0b14a0448ecf50935a1f6c90337c3d1c969af.tar.xz
zsh-72f0b14a0448ecf50935a1f6c90337c3d1c969af.zip
27188: improve read -q by using read -k code
Diffstat (limited to 'Test/D07multibyte.ztst')
-rw-r--r--Test/D07multibyte.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 3f4eaf9c0..53cbe2a1d 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -232,6 +232,12 @@
 <«»ignored
 >«»
 
+  read -q -u0 mb
+  print $?
+0:multibyte character makes read -q return false
+<«
+>1
+
   # See if the system grokks first-century Greek...
   ioh="Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν, καὶ θεὸς ἦν ὁ λόγος."
   for (( i = 1; i <= ${#ioh}; i++ )); do