Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exclamation mark expansion in shell command
- X-seq: zsh-users 5415
- From: Heinrich Götzger <Heinrich.Goetzger@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: exclamation mark expansion in shell command
- Date: Wed, 2 Oct 2002 21:55:51 +0200 (CEST)
- In-reply-to: <1021002162312.ZM18476@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Heinrich Götzger <Heinrich.Goetzger@xxxxxxxxxxxxxxxxxxxx>
- Sender: goetzger@xxxxxxxxxxxxxxxxxxxxxxx
On Wed, 2 Oct 2002, Bart Schaefer wrote:
>On Oct 2, 5:23pm, Heinrich Götzger wrote:
>}
>} I'm looking without success yet for a simple way to prevent zsh to expand
>} my cmd arguments (including !) to my history.
>
>There are several ways.
>
>First, history is not expanded for words in single quotes:
>
>zsh% echo '!foo'
>!foo
>
>Second, you can disable history expansion for a single command line by
>prefixing the line with !" like so:
>
>zsh% !" echo !foo
>!foo
>
>Note that in all versions of zsh less than 4.1.0, the "magic-space" key
>binding ignores the !" and still causes history to expand as you type.
>(In fact, it'll erase the !" as soon as you type the space after it.)
>
>Finally, you can `setopt nobanghist' to turn off all history expansion.
>
>If none of those seems to cover your situation, you'll have to explain in
>more detail.
I guess this hits the problem, I'll check on Monday in the office.
If it's not working, I'll provide more details.
Thanks a lot!
Heinrich
PS: I got every mail four times (2 times I understand, but 4 times is
enough for some cc on different places;-)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author