Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zsh spins in endless loop with SIGHUP + read in zshexit



On Thu, May 13, 2021, at 10:36 AM, Daniel Shahaf wrote:
> 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

Hi Daniel,

Planning on committing this?

-- 
vq




Messages sorted by: Reverse Date, Date, Thread, Author