about summary refs log tree commit diff
path: root/Test/B04read.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-01-07 10:05:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-01-07 10:05:35 +0000
commita89f0559c210def9a40bfeb9da6b38128a49cb55 (patch)
treeaa6bb2e44e5e7a842c4d78be3a71c6854b12b2ea /Test/B04read.ztst
parent21ee383e28f1e0fb31be0aa0c2d9a0cba26ccc8e (diff)
downloadzsh-a89f0559c210def9a40bfeb9da6b38128a49cb55.tar.gz
zsh-a89f0559c210def9a40bfeb9da6b38128a49cb55.tar.xz
zsh-a89f0559c210def9a40bfeb9da6b38128a49cb55.zip
28590: make read return status non-zero on error
Diffstat (limited to 'Test/B04read.ztst')
-rw-r--r--Test/B04read.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/B04read.ztst b/Test/B04read.ztst
index 2c87aa67a..ad427dc0d 100644
--- a/Test/B04read.ztst
+++ b/Test/B04read.ztst
@@ -88,3 +88,8 @@
  print ${#line}
 0:read with trailing metafied characters
 >24
+
+ (typeset -r foo
+  read foo) <<<bar
+1:return status on failing to set parameter
+?(eval):2: read-only variable: foo