ps -A|grep "sh" adds shells?
when my comp first boots and i log into the cli, it gives me a shell and if i echo $SHLVL it says 1, apparently indicating that i have one shell open. but if i run a ps -A|grep "sh" it shows two processes of bash running, with two different process numbers. but if i run a plain ps -A , it only shows one bash, whats with that? the same thing happens once i've loaded X with "startx" except then my $SHLVL is 4, ps -A shows 4 shells: 3 bash and 1 sh, and ps -A|grep "sh" shows 4 shells(an extra bash). why does that happen, is grep picking up some hidden lines in my ps -A? and why does X have to start so many shells?
|