Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: history expansion



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