bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Document that set -v inside case statements is special


From: 積丹尼 Dan Jacobson
Subject: Document that set -v inside case statements is special
Date: Tue, 20 Apr 2021 23:07:51 +0800

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
              ;;
esac
: C
$ bash A
: C

I.e., -v and +v in case statements are remembered, but only have effects
after leaving all case statements. Unlike +x, -x. Same it turns out for dash(1).
Bash 5.1.4.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]