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

Re: unshift



On Tue, Apr 2, 2024 at 4:03 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> while [ "$2" ]; do
>      shift
>      if [ a ]; then b; c; continue fi
>      if [ d ]; then e; f; continue fi
>      code-applies-to-all-below; more(of-the-same)
>      if [ g ]; then h; i; continue fi
>      if [ j ]; then k; l; continue fi
> done
>
> ... so elif won't work.

It'll work with one `else` in the mix.

Roman.




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