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:
>
> > > An associative array mapping symbolic names to integers?
>
> With $signals there's the annoyance that there's an off-by-one between
> the signals' value and its array index.

Incidentally it would have to be either an associative array mapping
numbers to names (perhaps with the sort of ordering guarantee that is
applied to $history), or an associative array with mappings in both
directions, sort of like $color as set up by the colors function.




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