Permalink
Browse files

Fix uncaught exception in OSH parser.

$ bin/osh -n
~/git/other/illumos-gate/usr/src/lib/libshell/common/tests/sun_solaris_command_substitution.sh

Line 62 of '/home/andy/git/other/illumos-gate/usr/src/lib/libshell/common/tests/sun_solaris_command_substitution.sh'
  compound test1=(
                 ^
  • Loading branch information...
Andy Chu
Andy Chu committed Oct 18, 2017
1 parent ca7ad2a commit 58c4884a4cafcdeb3e2ae1272e9574137d6c6b90
Showing with 7 additions and 0 deletions.
  1. +2 −0 osh/word_parse.py
  2. +5 −0 test/wild.sh
View
@@ -868,6 +868,8 @@ def _ReadArrayLiteralPart(self):
words = []
while True:
w = w_parser.ReadWord(LexMode.OUTER)
if not w:
return None
if w.tag == word_e.TokenWord:
word_id = word.CommandId(w)
View
@@ -422,6 +422,11 @@ all() {
test/wild-runner.sh parse-and-report "$@"
}
find-tracebacks() {
find _tmp/wild/raw -name '*__parse.stderr.txt*' |
xargs grep -l 'Traceback'
}
#
# Find Biggest Shell Scripts in Aboriginal Source Tarballs
#

0 comments on commit 58c4884

Please sign in to comment.