summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/pysh/pyshyacc.py
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2020-07-09 22:58:36 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-12 11:53:00 +0100
commit75c3ab048b6448467570838e9c6a8e7628e5de15 (patch)
tree23275cba21096eff046c57100bb9aeb4a08103d4 /bitbake/lib/bb/pysh/pyshyacc.py
parent61931d14df3be5273a38008ae2dff2a60a7d9b02 (diff)
downloadpoky-75c3ab048b6448467570838e9c6a8e7628e5de15.tar.gz
bitbake: pyshyacc: allow double COMMA statements
this allows shell statements like '; ;' to pass the parser. As it may be bad code but still valid enough to execute (Bitbake rev: b7732b1b5085bea73e17d112e1bd9ac3d4dc34fb) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/pysh/pyshyacc.py')
-rw-r--r--bitbake/lib/bb/pysh/pyshyacc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py
index de565dc9af..924860a6f3 100644
--- a/bitbake/lib/bb/pysh/pyshyacc.py
+++ b/bitbake/lib/bb/pysh/pyshyacc.py
@@ -570,6 +570,7 @@ def p_linebreak(p):
570 570
571def p_separator_op(p): 571def p_separator_op(p):
572 """separator_op : COMMA 572 """separator_op : COMMA
573 | COMMA COMMA
573 | AMP""" 574 | AMP"""
574 p[0] = p[1] 575 p[0] = p[1]
575 576