I have upgraded to Emacs 25.3 from 24. This issue only appears in the ksh. I've found that when I use bash then all is good.
I find that in shell-mode when I hit tab to perform completion of the rest of the filename or directory, then Emacs inserts annoying character(s) at the start of the command line. it inserts one or more of
> as I hit the tab key. This didn't happen in 24. I have tried in terminal mode -nw and using a gtk build.
How do I revert to the correct behaviour ?
Here is an example of the shell prompt in Emacs:
stm5412dap: /home/danlsb $ stm5412dap: /home/danlsb $
I now hit the TAB key after
ls ./ and completion window pops up and a
> gets inserted after the prompt every time I hit TAB. These get sent to the shell when I hit return which the shell will barf an error upon:
stm5412dap: /home/danlsb $ > > > > ls ./ /bin/ksh: ^L^L^L^Llr: not found [No such file or directory]
It's strange that the problem does not occur as soon as I switch to a bash shell. I exported PS1=$ in ksh to test a very simple prompt but the problem persisted.
SOLVED >>> I found this was causing the issue in my .profile. For some reason emacs25 shell does not like the below lines (yet in worked in earlier versions).
case $- in *i*) set -o emacs set -o ignoreeof #bind "^I=complete" esac