Re: Bad leaks file fd to child processes

2022-11-27 Thread Dale R. Worley
"凋叶棕" via Bug reports for the GNU Bourne Again SHell writes: > 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

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

2022-11-27 Thread Robert Elz
Date:Mon, 28 Nov 2022 02:53:40 +1000 From:Martin D Kealey Message-ID: | The expansion `$[var+replacement}` was part of the Bourne shell when I used | it in 1985 (before POSIX was first published), >From the original Bourne sh (released outside Bell Labs in 1979

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

2022-11-27 Thread Martin D Kealey
The expansion `$[var+replacement}` was part of the Bourne shell when I used it in 1985 (before POSIX was first published), whereas `test A -gt B` is rather newer, and `test -v` is only a Bash extension (and similarly wasn't added until later). The man and info pages have retained the rather terse

Localised variables become exposed to environment when FUNCNEST reached

2022-11-27 Thread felix
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: x86_64-pc-linux-gnu Bash Version: 5.2 Patch Le

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

2022-11-27 Thread Alejandro Colomar
On 11/27/22 14:10, David wrote: On Mon, 28 Nov 2022 at 00:01, Alejandro Colomar wrote: On 11/27/22 12:41, Alexey wrote: On 2022-11-26 21:45, Alejandro Colomar wrote: I could suggest you to use for clarity another construction: [[ ${1+isset} ]] || echo "not set" Here "isset" is just for

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

2022-11-27 Thread David
On Mon, 28 Nov 2022 at 00:01, Alejandro Colomar wrote: > On 11/27/22 12:41, Alexey wrote: > > On 2022-11-26 21:45, Alejandro Colomar wrote: > > I could suggest you to use for clarity another construction: > > [[ ${1+isset} ]] || echo "not set" > > Here "isset" is just for readability. You could

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

2022-11-27 Thread Alejandro Colomar
Hi Alexey, On 11/27/22 12:41, Alexey wrote: On 2022-11-26 21:45, Alejandro Colomar wrote: That was my gut; thanks!  I'll workaround with $#. I could suggest you to use for clarity another construction: [[ ${1+isset} ]] || echo "not set" Here "isset" is just for readability. You could place a

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

2022-11-27 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-11-26 21:45, Alejandro Colomar wrote: That was my gut; thanks! I'll workaround with $#. I could suggest you to use for clarity another construction: [[ ${1+isset} ]] || echo "not set" Here "isset" is just for readability. You could place any other string literal there. Regards, Ale