Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Append cancelled commands to history
- X-seq: zsh-users 14978
- From: Simon Ruderich <simon@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Append cancelled commands to history
- Date: Mon, 5 Apr 2010 21:36:05 +0200
- In-reply-to: <20090706154309.GA15663@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <c16a574a0809181450t61a5b5ddq2e80797fde37636e@xxxxxxxxxxxxxx> <20080919162045.GA22435@xxxxxxxxxxxx> <20090706151644.6BF508027106@xxxxxxxxxxxxxxxxxx> <20090706154309.GA15663@xxxxxxxxxxxxxxxxxxxxxxxxxx>
On Mon, Jul 06, 2009 at 06:43:09PM +0300, Nadav Har'El wrote:
> On Mon, Jul 06, 2009, Vadim Zeitlin wrote:
>> zle && print -s -- $BUFFER
>
> I wonder, isn't "-r" also wise to add, otherwise if you have
> escape sequences like "\n", "\c", etc., in your command line,
> they will be modified by the print command?
I totally overlooked that mail.
Yes, -r is definitely a good idea, it fixed some trouble I had
with whitespace.
Thanks,
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
Attachment:
pgpMUaCbUVkQG.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author