mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
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:
1
THANKS
1
THANKS
@@ -51,6 +51,7 @@ Didier Godefroy dg@ulysium.net
|
|||||||
Efi Fogel efifogel@gmail.com
|
Efi Fogel efifogel@gmail.com
|
||||||
Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de
|
Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de
|
||||||
Eric Blake ebb9@byu.net
|
Eric Blake ebb9@byu.net
|
||||||
|
Étienne Renault renault@lrde.epita.fr
|
||||||
Evgeny Stambulchik fnevgeny@plasma-gate.weizmann.ac.il
|
Evgeny Stambulchik fnevgeny@plasma-gate.weizmann.ac.il
|
||||||
Fabrice Bauzac noon@cote-dazur.com
|
Fabrice Bauzac noon@cote-dazur.com
|
||||||
Ferdinand Thiessen ferdinand@fthiessen.de
|
Ferdinand Thiessen ferdinand@fthiessen.de
|
||||||
|
|||||||
@@ -60,10 +60,10 @@ cd $$.dir
|
|||||||
run ()
|
run ()
|
||||||
{
|
{
|
||||||
# Expected exit status.
|
# Expected exit status.
|
||||||
local sta_exp=$1
|
local sta_exp="$1"
|
||||||
shift
|
shift
|
||||||
# Expected output.
|
# Expected output.
|
||||||
local out_exp=$1
|
local out_exp="$1"
|
||||||
shift
|
shift
|
||||||
# Effective exit status.
|
# Effective exit status.
|
||||||
local sta_eff=0
|
local sta_eff=0
|
||||||
|
|||||||
Reference in New Issue
Block a user