Ever since I started using OSX, occasionally I got ”command not found” when piping in in the shell.
For instance, running:
$ dmesg | grep sda
would spit out a ”grep command not found” error.
It got to the point to where I by default always when typing a | i would delete the space after and enter a space again. Annoying.
However, today I found the solution to the ”problem”.
Simply add this line to your ~/.inputrc to translate non-breaking spaces to regular spaces. Which was what caused the mishap in the first place.
"\xC2\xA0": " "
You should note that this does not happen if you type really slow.
Anyway, here’s the thread where I found the solution!