It looks like at random times my keyboard inserts a character that is displayed as a space character but isn't one, preventing the shell from interpreting it correctly. For example before "sort" below :
yannick@yannick-ubuntu:~/Pictures/Photos$ ls | grep "2015" | sort No command ' sort' found, did you mean: Command 'psort' from package 'radiance' (universe) Command 'sort' from package 'coreutils' (main) Command 'tsort' from package 'coreutils' (main) Command 'msort' from package 'msort' (universe) sort: command not found
If I go back in history, delete the "bad" space and write another one, then the command works fine :
yannick@yannick-ubuntu:~/Pictures/Photos$ ls | grep "2015" | sort 20150101 20150103 20150107 20150109 20150111 20150115
Any ideas what happens ?
I enter all my commands using keyboard (no copy / paste), I am using gnome terminal on ubuntu 14.04, and I have a french (azerty) keyboard.