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

Re: Silly question on :h and = expansion



Awesome!!! These are all wonderful.  "=foo(:h)" is the most concise
way I see, and fits with my style.

Thank you so much guys, and Paul for showing me a new trick.

Zach Riggle

On Tue, Aug 17, 2021 at 4:50 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Aug 17, 2021 at 2:35 PM Roman Neuhauser <neuhauser@xxxxxxxxxx> wrote:
> >
> > btw how long has :c been there?  i only noticed it a few weeks ago.
>
> 2009-03-23 it looks like.
>
> Sadly (?) although you can write foo(:c:h) without getting "illegal
> modifier" or "modifier failed", "foo" has to be a file in the current
> directory before :c can tell you whether it's also somewhere in the
> command path.




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