Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Silly question on :h and = expansion
- X-seq: zsh-users 26943
- From: Zach Riggle <zachriggle@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Roman Neuhauser <neuhauser@xxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Silly question on :h and = expansion
- Date: Tue, 17 Aug 2021 18:27:02 -0500
- Archived-at: <https://zsh.org/users/26943>
- In-reply-to: <CAH+w=7a5eybKqGC1ia-Pzq_Ru1521bNmS5G3_uDWDcVxBrrtFw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAMP9c5m8cBSfzSBgDEvadZFOKNMd7sE-qXFrjCxFKXYj6SDxrQ@mail.gmail.com> <CAH+w=7bCUUEaEEGziJcVvYz4semOPskVngCCKnsLU=OMK6Sacg@mail.gmail.com> <YRwrmlzbKMv8vVAE@isis.sigpipe.cz> <CAH+w=7a5eybKqGC1ia-Pzq_Ru1521bNmS5G3_uDWDcVxBrrtFw@mail.gmail.com>
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