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: alex xmb ratchev
Subject: Re: "builtin jobs" does not output to stdout.
Date: Sat, 11 Feb 2023 17:03:09 +0100

root@localhost:~# ( sleep .1 & jobs ) | wc -c
41

On Sat, Feb 11, 2023, 3:57 PM 岡部将幸 <okabe_m@hmi.aitech.ac.jp> wrote:

> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -g -O2
> uname output: Linux gold 5.8.0-63-generic #71-Ubuntu SMP Tue Jul 13
> 15:59:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> 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
>
> Fix:
> [Description of how to fix the problem.  If you don't know a
> fix for the problem, don't include this section.]
>


reply via email to

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