Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions

2024-05-01 Thread Chet Ramey
On 4/30/24 3:59 AM, Koichi Murase wrote: 2024年4月30日(火) 5:07 Chet Ramey : OK, let's explore this again. I haven't yet been convinced by the previous discussion [1,2] about the reporting of the foreground dead jobs in the trap handler, but this time, the situation is slightly different. The `job

Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions

2024-05-01 Thread Oğuz
On Tuesday, April 30, 2024, Chet Ramey wrote: > > comsubs). I can work around this case, but I'm still interested in what > people think the general rule should be. > I don't think anyone would expect to run `jobs' and see anything but asynchronous and stopped jobs. -- Oğuz

Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions

2024-05-01 Thread Chet Ramey
On 5/1/24 2:39 PM, Oğuz wrote: On Tuesday, April 30, 2024, Chet Ramey wrote: comsubs). I can work around this case, but I'm still interested in what people think the general rule should be. I don't think anyone would expect to run `jobs' and see anything but asynchronous and stopped jobs.

Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions

2024-05-01 Thread Oğuz
On Wed, May 1, 2024 at 10:36 PM Chet Ramey wrote: > Sure. Then you wonder why POSIX bothered to include "and all jobs whose > status has changed and have not been reported by the shell" in the > standard. No, I think it's a botched paraphrase. Issue 7 says "By default, the jobs utility shall disp

[bug #65670] Bash is not memory safe.

2024-05-01 Thread anonymous
URL: Summary: Bash is not memory safe. Group: The GNU Bourne-Again SHell Submitter: None Submitted: Wed 01 May 2024 11:39:28 PM UTC Category: None Severity: 3

(Just making sure this went through.) Bug: Bash is not memory safe.

2024-05-01 Thread Joshua Brown
$ bash --version | head -n1 GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu) $ valgrind --leak-check=full \ --track-origins=yes \ --verbose \ --log-file=valgrind-out-bash.txt \ /bin/bash ==2762== Memcheck, a memory error detector ==2762== Copyright (

Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions

2024-05-01 Thread Koichi Murase
2024年5月1日(水) 22:58 Chet Ramey : > Yes, and I said I could work around this case. Thank you for your consideration. > > [1] https://lists.gnu.org/archive/html/bug-bash/2022-10/threads.html#00054 > > [2] https://lists.gnu.org/archive/html/bug-bash/2022-11/threads.html#00049 > > (continued. I haven'