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

Re: sysexits.h codes? (was: Re: [RFC][PATCH] `newuser` prompt theme)



On Fri, Apr 30, 2021 at 2:17 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> With $signals there's the annoyance that there's an off-by-one between
> the signals' value and its array index.

The only reason $signals is as it is, is because it existed before
associative arrays did.

I wonder if we could do a trick sort of like we do when declaring
SECONDS as float, i.e., convert signals into a hash if one runs
  typeset -A signals




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