Space (and pipe sign) works on occasion only

Posted by Timo Riikonen on Ask Ubuntu See other posts from Ask Ubuntu or by Timo Riikonen
Published on 2013-11-05T12:35:52Z Indexed on 2013/11/07 22:22 UTC
Read the original article Hit count: 277

Filed under:
|

I have an issue that when I try to write pipe sign "|" and space after that, I sometimes get wrong type of space (\240) and my command fails. This issue persists on different shells.

How could I fix this?

I am using Finnish keyboard layout.

timo@timo-i7-ubuntu:~$ ps -ef | grep ruby
timo      7169  2633  0 12:12 pts/2    00:00:00 ruby1.9.1 /usr/local/bin/rails new admin4
timo      8736 26515  0 14:22 pts/4    00:00:00 grep --color=auto ruby
timo@timo-i7-ubuntu:~$ ps -ef | grep ruby
No command ' grep' found, did you mean:
 Command 'igrep' from package 'openimageio-tools' (universe)
 Command 'dgrep' from package 'debian-goodies' (main)
 Command 'rgrep' from package 'grep' (main)
 Command 'zgrep' from package 'gzip' (main)
 Command 'zgrep' from package 'zutils' (universe)
 Command 'sgrep' from package 'sgrep' (universe)
 Command 'lgrep' from package 'lv' (universe)
 Command 'egrep' from package 'grep' (main)
 Command 'ngrep' from package 'ngrep' (universe)
 Command 'grep' from package 'grep' (main)
 Command 'agrep' from package 'agrep' (multiverse)
 Command 'pgrep' from package 'procps' (main)
 Command 'xgrep' from package 'xgrep' (universe)
 Command 'vgrep' from package 'atfs' (universe)
 Command 'fgrep' from package 'grep' (main)
 grep: command not found

timo@timo-i7-ubuntu:~$ cat pipecom
ps -ef | grep rails
timo@timo-i7-ubuntu:~$ cat pipecom2
ps -ef | grep rails
timo@timo-i7-ubuntu:~$ ./pipecom
timo      7169  2633  0 12:12 pts/2    00:00:00 ruby1.9.1 /usr/local/bin/rails new admin4
timo      8777  8775  0 14:26 pts/4    00:00:00 grep rails
timo@timo-i7-ubuntu:~$ ./pipecom2
./pipecom2: line 1: $'\302\240grep': command not found
timo@timo-i7-ubuntu:~$ diff -w pipecom pipecom2
1c1
< ps -ef | grep rails
---
> ps -ef | grep rails

© Ask Ubuntu or respective owner

Related posts about keyboard

Related posts about pipe