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 23955
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Sylvia Gough <q0h8xdveje@xxxxxxxxx>
- Subject: Re: Getting the command in preexec as precisely typed
- Date: Sun, 2 Jun 2019 18:03:22 +0200
- 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=E/1/RHtOmrwguh4lCoBp9ws8t/FqA/9NsFMAS4IhQu8=; b=H27mLmk5j6vqqMFcLQvW8OuKQboWmMBW9WG2kEPddJynC/w8XkSXAZNbV9dMhSJiRh eqiiYYgudTlynkk1BXX34MYBjTDb5kAfEB/+MR76dRr/BH6LbDSaP2bFtFTGfPqXsxr5 vmVu7nPoGRus+GQ+Rcgdo/GVGwktlxY3awFAbkrd4yH8pBkxiKCw2NW9KxwlFQivK+ZU AehHlAlxT6FH4RtsYsUJwXQ6y8oROM0V2Ki4m6Y1Xnn3yzqBGNPrpMstzy13As/1KANl OsHsG2Bw8g/aUljz3FySjZHQU1qI+nFqP602m5oSv5q+ULeBR/W75nTRx3AVl9ih8YLZ AWoQ==
- In-reply-to: <CA+E8bhofxWgV+BG+a2p8wN3dy6VjLX28EAeH=DXM7LWHH63h9Q@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>
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