Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history expansion
- X-seq: zsh-users 24705
- From: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: history expansion
- Date: Sat, 22 Feb 2020 02:01:51 +0100
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- In-reply-to: <CAH+w=7b27JX-LPMS=M3Ot496bWY3oWs9nJuPwZEm8Kb36wiaWA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAP+y1xA-Pm1-kiuvODNHRteGAEbOOA7PDqR6mYF+v-hvBYiCZA@mail.gmail.com> <CACeGjnUZ_UJAqm=xZbN5Gof+G8M-Y9zATf433FSApV=avp5G1g@mail.gmail.com> <CAP+y1xB3=zPcUhd_qJ3nDBPvx8XOoHPqDn0Btby-r=bBpoOVEg@mail.gmail.com> <CAH+w=7b27JX-LPMS=M3Ot496bWY3oWs9nJuPwZEm8Kb36wiaWA@mail.gmail.com>
indeed I wasn't aware, but it does not help me since I cannot do this:
$a="!!"
print -z $a
because it still tries to immediately expand the !!
thanks though
Pier Paolo Grassi
linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217
founder: https://www.meetup.com/it-IT/Machine-Learning-TO
Il giorno sab 22 feb 2020 alle ore 01:36 Bart Schaefer <
schaefer@xxxxxxxxxxxxxxxx> ha scritto:
> On Thu, Feb 20, 2020 at 5:20 AM Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
> wrote:
> >
> > 20-02-20 14:16:45 root@bakeca-vivobook Path: ~
> > : print -z '!!'
> > 20-02-20 14:16:47 root@bakeca-vivobook Path: ~
> > : !!
> > print -z '!!'
> >
> > !! is resolved to print -z '!!'
>
> I'm surprised that no one has pointed out that history does not expand
> inside single quotes, but it does in double quotes.
>
> print -z "!!"
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author