Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history expansion
- X-seq: zsh-users 30711
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: history expansion
- Date: Thu, 16 Jul 2026 11:51:11 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FZQvfvzmKic0hwVXTE3OY8RmZXFpFq6dMIaKssvMxQA=; fh=yk3c4scJWo86Za4IR1HBNZw2a+GkUkfVQ7Fs3jnanfg=; b=BQc0FFy2y5zq7oRzn1Na8TOlyu3ez2WV0WSDs6ck5hIMXwsc2ODXpFeUQvXv6dm7zC cWEtQEAcgu+9feLuo4tH7oWrfPiAs673WrUA29/Z9VMG9pD7fkNndH8h4JSP8RWC6Vzr JsPZxIEf813IZ6HM7BK1W2B9bUSNxQQQjoLiN8DEBsBL/tuMTWxt6YMLDhuxGDuSvs0V 3wU3YHv75tsq0OKK+x76xb2iXiQT7XyqDZba8hDeqsKBPRHd1JIy4m0K2PQndL5G2eMI oeCmHn5mLN6ZFvprMKj51ucySUfg2gmOo9WqhovNwXuLpKtCMwRoN62+V1jpisx7v+wD q7KA==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1784227883; cv=none; d=google.com; s=arc-20260327; b=ccrL76gKVPxre6w7weu26J/O6mpSmY5obdpBCVMBCsbZrlWiqor5XJUuCWHYh4jjhy iDtNPRcNnwFY+DNR5P0KnSQcJBpoHjSzKpHiMHOEA08fvRf6/MsaePXwd5yt3iY0WnBz obddHqMllnSmDK81BGckDhT9Ozp5fOD+UAj/q6s13VnfwCgQzWwLFGfGwOV+CAdq6fx7 4LOPQXYhJKZ94Wc9cHzUajFPBOhz4ag/BjpDUk9FYxvNAPPCBM2yZW8JlVXcOtXt/kWa 8SmbRqiUr7lIGsEhelQFLW/uQsmLtu5FGJg+E5OJkmYSVoIUUS4EvZe/Aa5BKOLmbSnF IFCw==
- Archived-at: <https://zsh.org/users/30711>
- In-reply-to: <20260715225317.GA75013@qaa.vinc17.org>
- List-id: <zsh-users.zsh.org>
- References: <20260712085723.GA719379@qaa.vinc17.org> <AB1505A3-F3EF-4DF2-86A7-D827F6FF6B3A@gmail.com> <CAA=-s3xAjkK1jcQ+zJFqNgF_1xkezLudrnenjttGxoZPMsUf0g@mail.gmail.com> <CAH+w=7a9mCwLeHxyM-30CkHVEVyLYs68FfAshNzKCOLPTUBQ6g@mail.gmail.com> <20260714103544.GG719379@qaa.vinc17.org> <CAH+w=7YiEiJYM90WnqG15Dyv8+j+N=8Jex_rN7j8GWUNEud4ig@mail.gmail.com> <20260715225317.GA75013@qaa.vinc17.org>
On Wed, Jul 15, 2026 at 3:53 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2026-07-14 13:06:17 -0700, Bart Schaefer wrote:
> > On Tue, Jul 14, 2026 at 3:42 AM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> > > My problem was more with things like
> > >
> > > echo "foo!"
> >
> > You probably know this: history expansion takes place inside "..." but
> > not inside '...'.
>
> Perhaps I should have asked whether anyone relies on history expansion
> inside double quotes (it is supported by bash, but differently, e.g.
> no history expansion with the above command in bash).
There's no history expansion with the above command in zsh either. !"
is the explicit "turn off history from this point forward" shortcut.
% echo "foo!"!"
foo!
(Mark has followed up about other stuff.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author