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

Re: Silly question on :h and = expansion



On Tue, Aug 17, 2021 at 7:55 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> You can use this form to enable globbing in conditionals,
> % [[ -d =zsh(#q:h) ]] && echo yes || echo no
> yes

Requires extendedglob.




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