Document that set -v inside case statements is special

2021-04-20 Thread 積丹尼 Dan Jacobson
Please document on the man page somewhere that set -v, +v inside case statements is special: $ cat A case x in x) set -v : B case y in y) set -v : Z ;; esac

Re: Document that set -v inside case statements is special

2021-04-20 Thread Greg Wooledge
On Tue, Apr 20, 2021 at 11:07:51PM +0800, 積丹尼 Dan Jacobson wrote: > Please document on the man page somewhere that set -v, +v inside case > statements is special: > $ cat A > case x in x) > set -v > : B > case y in y) > set -v >

Re: Document that set -v inside case statements is special

2021-04-20 Thread Dmitry Goncharov via Bug reports for the GNU Bourne Again SHell
On Tue, Apr 20, 2021 at 2:37 PM Greg Wooledge wrote: > With case, or any other compound command, the entire compound command is > read from the script and parsed, before bash can start running it. So, by > the time the set -v is executed, the entire case command has already been > read. Is not

Re: Document that set -v inside case statements is special

2021-04-20 Thread Greg Wooledge
On Tue, Apr 20, 2021 at 09:25:04PM -0400, Dmitry Goncharov via Bug reports for the GNU Bourne Again SHell wrote: > On Tue, Apr 20, 2021 at 2:37 PM Greg Wooledge wrote: > > > With case, or any other compound command, the entire compound command is > > read from the script and parsed, before bash