Red Hat Bugzilla – Bug 186159
pipe have to be glued to the next command in order to work
Last modified: 2007-11-30 17:11:27 EST
Description of problem:
pipes doesn't work as expected : pipe have to be glued to the next command in
order to work, otherwise, the result is a "command not found" (the white spaces
after the pipe are taken as part of the command after the pipe !)
Version-Release number of selected component (if applicable):
FC5 up to date
Steps to Reproduce:
1. open a (gnome) terminal and type 'ls | grep a'
2. making a 'su' or a 'su -' doesn't change anything
[a@localhost ~]$ ls | grep a
bash: grep: command not found
just grep string "a" in the output of ls
Quite surprinsingly 'ls |grep a' work (note the absence of the blank after the
Perhaps you are accidentally typing Shift-space instead of space? What happens
when you copy and paste this line?:
ls | grep a
It works. It took me half an hour to understand : I almost always keep alt-gr
pressed when I type the white space after '|' (french keyboard layout). I can't
tell if I began to do that yesterday or if under FC4 the behavior is different
(space = alt-gr space).
Thanks and sorry.