Permalink
Browse files

Check result of ParseForWords.

vartree2.sh in the ast/.../ksh93 repo hit this.
  • Loading branch information...
Andy Chu
Andy Chu committed Oct 18, 2017
1 parent d52e4a4 commit cb7c3015261befb5d2c095943011e14178721b22
Showing with 4 additions and 1 deletion.
  1. +4 −1 osh/cmd_parse.py
View
@@ -782,7 +782,10 @@ def _ParseForEachLoop(self):
self._Next() # skip in
in_spid = word.LeftMostSpanForWord(self.cur_word) + 1
iter_words, semi_spid = self.ParseForWords()
x = self.ParseForWords()
if x is None:
return None
iter_words, semi_spid = x
words2 = braces.BraceDetectAll(iter_words)
words3 = word.TildeDetectAll(words2)

0 comments on commit cb7c301

Please sign in to comment.