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

Re: Silly question on :h and = expansion



# GammaFunction@xxxxxxxxxxx / 2021-08-17 16:31:42 -0500:
> On Tue Aug 17, 2021 at 12:39 PM CDT, Zach Riggle wrote:
> > But I was hoping there was a way to combine the "=" and ":h" expansion
> > into one line. As best I can tell, there isn't -- but I figured it
> > was worth asking.
> 
> In fact there is!  Modifiers can also be used as globbing flags:
> 
>     cd =foo(:h)

Perl: There Is More Than One Way to Do It,
Zsh: There's Always One More Way to Do It.

also, doh!

-- 
roman




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