Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Getting the command in preexec as precisely typed



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