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

2022-06-28 Thread H. Thiele
Hello Chet Ramey, Chet Ramey wrote on 27.06.2022 16:16 (GMT +02:00): > > 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

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.

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