Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Silly question on :h and = expansion
- X-seq: zsh-users 26941
- From: Roman Neuhauser <neuhauser@xxxxxxxxxx>
- To: Paul <GammaFunction@xxxxxxxxxxx>
- Cc: Zach Riggle <zachriggle@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Silly question on :h and = expansion
- Date: Tue, 17 Aug 2021 23:39:36 +0200
- Archived-at: <https://zsh.org/users/26941>
- In-reply-to: <CDM3XCX50UDU.2QYA9LTROCG5D@kbvv>
- List-id: <zsh-users.zsh.org>
- References: <CAMP9c5m8cBSfzSBgDEvadZFOKNMd7sE-qXFrjCxFKXYj6SDxrQ@mail.gmail.com> <CDM3XCX50UDU.2QYA9LTROCG5D@kbvv>
# 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