Odd Behavior: $SHLVL decreases in some situations with a pipe

2022-06-27 Thread H. Thiele
From: H. Thiele To: bug-bash@gnu.org Subject: Odd Behavior: $SHLVL decreases in some situations with a pipe Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin14.5.0 Compiler: gcc Compilation CFLAGS: -DSSH_SOURCE_BASHRC uname output: Darwin ***REDACTED*

Re: tab completing `/ cause weird errors messages.

2022-06-27 Thread Chet Ramey
On 6/25/22 8:27 PM, Emanuele Torre wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_U

Re: Odd Behavior: $SHLVL decreases in some situations with a pipe

2022-06-27 Thread Chet Ramey
On 6/27/22 8:02 AM, H. Thiele wrote: Bash Version: 5.1 Patch Level: 16 Release Status: release Description: In some situations (see Repeat-By) the value of the $SHLVL (Shell Level) variable may unexpectedly decrease by 1, e.g. when the stdout output of "printenv" is redirected to via a pipe.

Re: [ ! ! hey ] -> [: too many arguments

2022-06-27 Thread Steffen Nurpmeso
One more, and orry for the late reply, i waited until i could test also SunOS 5.9 test(1) (binary from 2002-04-07!). Emanuele Torre wrote in : |On 22/06/23 11:08 PM, Steffen Nurpmeso wrote: ... |bash-5.1$ test ! ! hey ; printf %s\\n "$?" ... |test(1) needs to treat the 0 to 4 arg