zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Richard Hartmann" <richih.mailinglist@gmail.com>,
	"Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: Re: Strange parsing bug(?)
Date: Tue, 30 Sep 2008 23:06:14 -0700	[thread overview]
Message-ID: <080930230614.ZM32707@torch.brasslantern.com> (raw)
In-Reply-To: <2d460de70809301756j71effaa9waa6b1a1d0736d9b9@mail.gmail.com>

On Oct 1,  2:56am, Richard Hartmann wrote:
}
} Of course, I might have stumbled onto a hidden feature, but if that
} is the case, I would argue that this is extremely against the
} expectation of most users.

It's not a hidden feature, but it is a feature.  Doc says:

   If the shell encounters the character sequence `!"' in the input,
   the history mechanism is temporarily disabled until the current list
   (see *Note Shell Grammar::) is fully parsed. The `!"' is removed
   from the input, and any subsequent `!' characters have no special
   significance.

If you don't want ! to be a history character, setopt nobanghist.  If
you do want it to be a history character, then ... get used to using
single quotes instead of double, I guess, because history doesn't
expand in single quotes.

(Aside:  I think it's actually the first character of $histchars and
then a double quote that has this effect, so the doc could be better.)


  parent reply	other threads:[~2008-10-01  6:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01  0:56 Richard Hartmann
2008-10-01  1:05 ` Richard Hartmann
2008-10-01  6:06 ` Bart Schaefer [this message]
2008-10-01  7:36   ` Richard Hartmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=080930230614.ZM32707@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=richih.mailinglist@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).