Thanks, that works! On Sun, Jun 2, 2019 at 7:03 PM Sebastian Gniazdowski wrote: > On Sun, 2 Jun 2019 at 16:47, Sylvia Gough 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 >