t0000: test multiple local assignment
commit8cb7980382855f9f696924fec70ed88ea6895030
authorDenton Liu <liu.denton@gmail.com>
Thu, 14 Nov 2019 00:52:15 +0000 (13 16:52 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Nov 2019 00:40:08 +0000 (21 09:40 +0900)
treedd437c011da88939162a68d4dc431ebb5c0eda55
parentda72936f544fec5a335e66432610e4cef4430991
t0000: test multiple local assignment

According to POSIX enhancement request '0000767: Add built-in
"local"'[1],

dash only allows one variable in a local definition; it permits
assignment though it doesn't document that clearly.

however, this isn't true since t0000 still passes with this patch
applied on dash 0.5.10.2. Needless to say, since `local` isn't POSIX
standardized, it is not exactly clear what `local` entails on different
versions of different shells.

We currently already have many instances of multiple local assignments
in our codebase. Ensure that this is actually supported by explicitly
testing that it is sane.

[1]: http://austingroupbugs.net/bug_view_page.php?bug_id=767

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0000-basic.sh