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

Re: Boundary error in VCS_INFO_set --nvcs



On Sun, Apr 17, 2022 at 11:48 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> > Bart Schaefer wrote on Wed, Apr 13, 2022 at 14:34:28 -0700:
> > >      [[ $2 == '-preinit-' ]] && (( maxexports == 0 )) && (( maxexports = 1 ))
> > >      for i in {0..$((maxexports - 1))} ; do
>
> I'm not sure, however, what the right code change is.  Anyone wants to
> jump in?

Dropping [[ $2 == '-preinit-' ]] && would be the obvious thing, but
I'm not sure why we care about it, so perhaps something more
complicated is required.




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