Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh spins in endless loop with SIGHUP + read in zshexit
- X-seq: zsh-users 26734
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: Jörg Sommer <joerg@xxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit
- Date: Thu, 13 May 2021 14:36:19 +0000
- Archived-at: <https://zsh.org/users/26734>
- In-reply-to: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de>
- List-id: <zsh-users.zsh.org>
- References: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de>
Thanks for the bug report and analysis. I don't have anything to add to that. However:
Jörg Sommer wrote on Thu, 13 May 2021 10:17 +00:00:
> if read -rq junk"?Root filesystem is still read-write. Remount ro? (y/N) "
You don't have to name the variable here; «read -q '?foo bar baz '» is valid. This, then?
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 61dc6986f..92f379d49 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1449,7 +1449,7 @@ findex(read)
vindex(IFS, use of)
redef(SPACES)(0)(tt(ifztexi(NOTRANS(@ @ @ @ @ ))ifnztexi( )))
xitem(tt(read )[ tt(-rszpqAclneE) ] [ tt(-t) [ var(num) ] ] [ tt(-k) [ var(num) ] ] [ tt(-d) var(delim) ])
-item(SPACES()[ tt(-u) var(n) ] [ var(name)[tt(?)var(prompt)] ] [ var(name) ... ])(
+item(SPACES()[ tt(-u) var(n) ] [ [var(name)][tt(?)var(prompt)] ] [ var(name) ... ])(
vindex(REPLY, use of)
vindex(reply, use of)
Read one line and break it into fields using the characters
(Hope the webmail doesn't munge long lines!)
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author