Permalink
Browse files

Fix bug with osh2oil and redirects.

test/osh2oil.sh all-passing now works again!
  • Loading branch information...
Andy Chu
Andy Chu committed Dec 21, 2017
1 parent 9a3c878 commit 3c485186acd491b092e7d7256d0ddbfc9da9b0ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/osh2oil.py
View
@@ -246,7 +246,7 @@ def DoRedirect(self, node, local_symbols):
# - >> becomes >+ or >-, or maybe >>>
if node.tag == redir_e.Redir:
if node.fd == -1:
if node.fd == const.NO_INTEGER:
if node.op_id == Id.Redir_Great:
self.f.write('>') # Allow us to replace the operator
self.cursor.SkipUntil(node.spids[0] + 1)

0 comments on commit 3c48518

Please sign in to comment.