examples: beware of shell portability issues

Some shells don't grok `local var=$val` very well: they need the rhs
to be quoted.

    ./examples/test: 66: local: you.,: bad variable name
    FAIL examples/variant.test (exit status: 2)

Reported by Étienne Renault.

* examples/test (run): Quote the values in 'local' assignments.
This commit is contained in:
Akim Demaille
2018-09-02 09:37:53 +02:00
parent 50fb434689
commit 2d7e743802
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -51,6 +51,7 @@ Didier Godefroy [email protected]
Efi Fogel [email protected]
Enrico Scholz [email protected]
Eric Blake [email protected]
Étienne Renault [email protected]
Evgeny Stambulchik [email protected]
Fabrice Bauzac [email protected]
Ferdinand Thiessen [email protected]