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

Re: dangerous behavior of while in zsh 5.6 ?



Marc Chantreux wrote on Wed, 03 Oct 2018 18:25 +0200:
>     nat () {
>         local -i x=${1-0}
>         while print $[x++]
>     }

Compare:

yes '' | nl -ba



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