bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "builtin jobs" does not output to stdout.


From: Chet Ramey
Subject: Re: "builtin jobs" does not output to stdout.
Date: Tue, 14 Feb 2023 10:30:10 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.2

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    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]