Re: Bad leaks file fd to child processes

2022-11-26 Thread Chet Ramey
On 11/26/22 5:05 AM, 凋叶棕 via Bug reports for the GNU Bourne Again SHell wrote: Hello, I find that the file descriptor leaks when I execute the command pvs in bash 5.2, The abnormal scenario is similar to the bug which reported by

Re: [bash 4] 'test -v 1' is never true

2022-11-26 Thread Alejandro Colomar
Hi Chet! On 11/26/22 18:44, Chet Ramey wrote: On 11/25/22 4:02 PM, Alejandro Colomar wrote: Hi! I wrote a script, and am trying it on many systems.  On RHEL8, which has bash 4, it didn't work.  I could reduce the problem to the following command, which never returns true: test -v 1;

Re: [bash 4] 'test -v 1' is never true

2022-11-26 Thread Chet Ramey
On 11/25/22 4:02 PM, Alejandro Colomar wrote: Hi! I wrote a script, and am trying it on many systems.  On RHEL8, which has bash 4, it didn't work.  I could reduce the problem to the following command, which never returns true:     test -v 1; This is a bash feature. I cribbed it from

Re: Bad leaks file fd to child processes

2022-11-26 Thread Andreas Schwab
On Nov 26 2022, "凋叶棕" via Bug reports for the GNU Bourne Again SHell wrote: > But when I execute pvs in the terminal opened through vscode(use Remote-SHH > to connect linux), the File descriptor was leaked > > File descriptor 19 (/dev/ptmx) leaked on pvs invocation. Parent PID 3789: >

Bad leaks file fd to child processes

2022-11-26 Thread ??????
Hello, I find that the file descriptor leaks when I execute the command pvs in bash 5.2, The abnormal scenario is similar to the bug which reported by http://lists.gnu.org/archive/html/bug-bash/2017-01/msg00026.html When I execute pvs in the terminal opened through xshell??it??s ok PV