Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting the command in preexec as precisely typed
- X-seq: zsh-users 23957
- From: Sylvia Gough <q0h8xdveje@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Getting the command in preexec as precisely typed
- Date: Mon, 3 Jun 2019 00:22:34 +0300
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Udyc+WfXvMJhpg9e54WrK0wfwEo+iv/xiO0oTam8SEI=; b=Urr1NQri2nRfgalj7Uc9Ne66LAKh6v/518IPRpUmZcF6kDcBQtOGT82MGe8hqa1yny icqDEXVJH3vOImqo2QFjMcHFE7bu5xzmYLR0ZlbDsdcDhylw4gNbxdDwbV57BMF2xC4U Tf3cr1T7XGr3+7YXreGpX4cS7skeQRwBGBgXpHajV83/roRsF3blGnsRXc22dcDEy+Sk oPUuf/ibt0oQgNJqleFjJ6zU8TXgMS1axgv6xT89SgjLPcEqf9VaCZQ+18kHpZ7IEnsO X34pdrZOnzwH4pMLuv7En0fulCBe1fLL0IyekQNzRfjK/pbTMYKDu+nKYTfDU58lpcHd TloQ==
- In-reply-to: <CAKc7PVDPVj3_DhJhCYo-LhZEGxLmzpeoE+50t8ficzdPzra9Bw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+E8bhofxWgV+BG+a2p8wN3dy6VjLX28EAeH=DXM7LWHH63h9Q@mail.gmail.com> <CAKc7PVDPVj3_DhJhCYo-LhZEGxLmzpeoE+50t8ficzdPzra9Bw@mail.gmail.com>
Thanks, that works!
On Sun, Jun 2, 2019 at 7:03 PM Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:
> On Sun, 2 Jun 2019 at 16:47, Sylvia Gough <q0h8xdveje@xxxxxxxxx> wrote:
> > ...
> > Now if I type `echo \b` the string `echo ^H$` is printed (i.e. `\b` was
> > replaced by `^H`).
> > This does not happen when using `fc -nl -1`.
> >
> > How can I get the same inside `preexec`?
> >
> > Thanks!
>
> It is the echo in the hook that does the conversion \b -> ^H. Use -E
> option with echo to prevent this.
>
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author