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