Under AIX, stdout from the bash builtin `jobs' can be piped arbitrarily
(to a pager, to grep, what have you). Under Linux, it seems that I
can't do this; the pipe comes up empty. I can:
jobs >thisfile; grep pattern thisfile
but I cannot:
jobs | grep pattern
although either works under AIX. The shell is the same for both
environments. I have invoked them with --noprofile and --norc in order
to rule out some kind of setting which makes the pipes behave
differently.
Does anyone know why bash behaves differently under AIX? And why I can't
do this with Linux? (2.0.36, egcs-1.0.3a, glibc-2.0.6, bash-2.02.1). I
really would like to be able to parse this output for a script I'm
trying to write. I'm also immensely curious why the behavior would
differ...
--
Scott