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

Re: numeric for-loop and string for-loop



On Mon, 2018-12-03 at 07:56 -0600, Peng Yu wrote:
> To make the second i as string in zsh, what is the best solution so
> that the minimum amount of code is changed.

If you want to turn an integer into a string,

declare +i i

will work.

pws



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