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

RE: ${...-...} vs ${...:-...}



>
> } bor@itsrm2% print ${(%)-%l}
> } 5679KNTXYZhims
>
> ${(%)-%l} is ${-} is $- is the option flags.  I can see why this might be
> baffling, but I don't know what else zsh ought to do.
>

Hmm ... output an error message? I mean, ${(...)-} is an $-; but
${-blablabla} does not lool like it.

Or interpret it as the ${...:-...}?

-andrej



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