Is there any fundamental difference between piping in mac and linux?

Posted by Mohammad Moghimi on Super User See other posts from Super User or by Mohammad Moghimi
Published on 2012-10-06T08:29:21Z Indexed on 2012/10/06 9:39 UTC
Read the original article Hit count: 951

Filed under:
|
|
ps -e | grep bash

sample output from a linux machine:

1128 pts/14   00:00:00 bash
7491 pts/7    00:00:00 bash
12651 pts/14   00:00:00 bash
16145 pts/2    00:00:00 bash

sample output from a mac machine:

58352 ttys000    0:00.09 login -pfl username /bin/bash -c exec -la bash /bin/bash
58353 ttys000    0:00.02 -bash
58390 ttys000    0:00.00 grep bash
20372 ttys005    0:00.06 login -pfl username /bin/bash -c exec -la bash /bin/bash
20373 ttys005    0:00.18 -bash

My question is that why we see "grep bash" in the second case but not the first case.

© Super User or respective owner

Related posts about mac

Related posts about bash