1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

28590: make read return status non-zero on error

This commit is contained in:
Peter Stephenson 2011-01-07 10:05:35 +00:00
parent 21ee383e28
commit a89f0559c2
3 changed files with 15 additions and 2 deletions

View file

@ -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