Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unexpected results
- X-seq: zsh-users 27982
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Unexpected results
- Date: Mon, 22 Aug 2022 14:07:55 -0700
- Archived-at: <https://zsh.org/users/27982>
- In-reply-to: <CAN=4vMrPTSFnjuR_NmKZdt9Y_mAyFVYC4z-Dxh-+rh-+PtxsAg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <FB0B3030-396E-4874-B531-E23FCB1EE526@easesoftware.com> <1591910550.1867255.1661176876454@mail.virginmedia.com> <CAH+w=7aiyJxe6i=AtKKO2Rt4j2Qb7n0pBtqqogz8GsrR2QvbMg@mail.gmail.com> <CAN=4vMrPTSFnjuR_NmKZdt9Y_mAyFVYC4z-Dxh-+rh-+PtxsAg@mail.gmail.com>
On Mon, Aug 22, 2022 at 1:56 PM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> On Mon, Aug 22, 2022 at 10:52 PM Bart Schaefer
> <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > echo !:1:Q:h:q
> >
> > perhaps?
>
> It expands to this:
>
> echo 'a/path' 'with' 'spaces/in'
Ah. So "!:Q:h" (including the double quotes) then, though that has
problems if there are $var in the previously single-quoted expression.
This is why we have ZLE instead of just bang-history, I suppose.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author