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

Re: Silly question on :h and = expansion



# schaefer@xxxxxxxxxxxxxxxx / 2021-08-17 10:59:19 -0700:
> On Tue, Aug 17, 2021 at 10:39 AM Zach Riggle <zachriggle@xxxxxxxxx> wrote:
> >
> > I was hoping there was a way to combine the "=" and ":h" expansion
> 
> cd ${$(<<<=foo):h}

also

* cd ${${:-=dram}:h}
* cd ${${:-dram}:c:h}

the first one is one character shorter than Bart's version. ;)

btw how long has :c been there?  i only noticed it a few weeks ago.

-- 
roman




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