My .bashrc has the following:# Alt+L lists current directorybind -x \\el\:ls -ltrF --color=auto;# trap commands and echo them to xterm titlebar.trap 'echo -ne \033]0;$BASH_COMMAND - $USER@${HOSTNAME}>$(pwd)\007' DEBUGDemo of the problem:bash-4.2$ [Alt+L] #workstotal 0-rw-rw-r--  1 me 1234 0 Aug  3 07:11 foo-rw-rw-r--  1 me 1234 0 Aug  3 07:11 barbash-4.2$ ls -ltr #fails first timebash: -ltr: command not foundbar  foobash-4.2$ ls -ltr #works second timetotal 0-rw-rw-r--  1 me 1234 0 Aug  3 07:11 foo-rw-rw-r--  1 me 1234 0 Aug  3 07:11 barAs you can see, the ls command fails the first time after executing the key binding. I believe it has to do with the trap. Removing the trap fixes the issue.Is there any way to fix this without removing the trap?
Bash: keybinding/trap issue
bash;keyboard shortcuts;trap
Put this in your ~/.inputrc::\M-l:    ls -ltrF\r