On 2/11/23 8:54 AM, 岡部将幸 wrote:

Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:
builtin command "jobs" behaves differntly depending on
the presence or absence of "builtin".
"jobs" outputs to stdout, but "builtin jobs" does not
output to stdout.

Repeat-By:
"sleep 1000 &"
"builtin jobs | cat" -> no output
"jobs | cat" -> [1]+ Running

Yes. As described in later messages, there is a special case that allows
the output of `jobs' to be piped. This came in at some point between
bash-1.05 (March 1990) and bash-1.08 (May 1991). I never extended this
special case to `builtin' or `command'.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to