Re: Bad leaks file fd to child processes

2022-11-28 Thread Dale R. Worley
Alexey via Bug reports for the GNU Bourne Again SHell > Same behavior was in bash 4.4 (as well as now in bash 5.2): > > # echo $BASH_VERSION > 4.4.0(1)-release > # exec 66 # pvs > File descriptor 66 (/etc/hosts) leaked on pvs invocation. Parent PID > 1057606: ./bash > > But we use the fact tat

Re: Bad leaks file fd to child processes

2022-11-28 Thread Greg Wooledge
On Mon, Nov 28, 2022 at 05:00:28PM -0500, Dale R. Worley wrote: > Alexey via Bug reports for the GNU Bourne Again SHell > > Same behavior was in bash 4.4 (as well as now in bash 5.2): > > > > # echo $BASH_VERSION > > 4.4.0(1)-release > > # exec 66 > # pvs > > File descriptor 66 (/etc/hosts)

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

2022-11-28 Thread Alex Colomar
Hi Martin, On 11/27/22 17:53, Martin D Kealey wrote: The expansion `$[var+replacement}` was part of the Bourne shell when I used it in 1985 (before POSIX was first published), I didn't know that; interesting. Still looks ugly/convoluted to me to use that feature here. Might be useful if I

Re: Bad leaks file fd to child processes

2022-11-28 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-11-26 14:05, "凋叶棕" 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 "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-28 Thread Koichi Murase
2022年11月23日(水) 5:24 Chet Ramey : > I attached the latest patch against bash-5.2.9. > commit 3c9dd4565792bc53de3a94ec38a65a1989f3fe2f (upstream/devel) > > associative array elements; last set of changes to globbing > bracket expressions; fix for timing subshell commands Thank you for

Re: Bad leaks file fd to child processes

2022-11-28 Thread Koichi Murase
2022年11月28日(月) 19:06 Alexey via Bug reports for the GNU Bourne Again SHell : > But we use the fact tat bash doesn't close FD for example to preliminary > open log file for utility that we will `exec' later. > Unfortunately bash doesn't provide any fcntl() mechanism to control FD > flags. > It'll

Re: Bad leaks file fd to child processes

2022-11-28 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-11-28 14:20, Koichi Murase wrote: 2022年11月28日(月) 19:06 Alexey via Bug reports for the GNU Bourne Again SHell : But we use the fact tat bash doesn't close FD for example to preliminary open log file for utility that we will `exec' later. Unfortunately bash doesn't provide any fcntl()

degraded error message in case of hash-bang interpreter error

2022-11-28 Thread H.Janssen
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-28 Thread Koichi Murase
2022年11月28日(月) 19:51 Koichi Murase : > The fix for PATSCAN (C) is included in the second patch > [r0037.patscan1.parse_subbracket.patch.txt], which solves "Repeat-By 1 > and 4" by using PARSE_SUBBRACKET of the first patch. [...] Sorry, there was an oversight in the second patch

Re: Localised variables become exposed to environment when FUNCNEST reached

2022-11-28 Thread Chet Ramey
On 11/27/22 10:55 AM, felix wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux medium 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux Machine Type:

Re: degraded error message in case of hash-bang interpreter error

2022-11-28 Thread Chet Ramey
On 11/28/22 8:13 AM, H.Janssen wrote: Bash Version: 5.2 Patch Level: 9 Release Status: release Description:    If the interpreter after #! is wrong, a non-informative message is printed Thanks for the report. This has been fixed in the devel git branch for a while now. -- ``The lyf so