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:
parent
21ee383e28
commit
a89f0559c2
3 changed files with 15 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue