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.