Pipe implemented correctly

but command like grep x | ls creates two grep x — need to be fixed