Permalink
Please sign in to comment.
Browse files
[osh2oil] Handle the 'until' loop, so it doesn't cause a crash.
Added test cases. Also: - Combine parsing and tree representation of while and until loops. The execution was already unified. - Fix the translation of while and until conditions, and add a test. while (( x == 0 )); now properly turns into while sh-expr ' x == 0 '.
- Loading branch information...
Showing
with
60 additions
and 30 deletions.
- +2 −3 core/cmd_exec.py
- +8 −20 osh/cmd_parse.py
- +2 −1 osh/cmd_parse_test.py
- +1 −2 osh/osh.asdl
- +34 −0 test/osh2oil.sh
- +13 −4 tools/osh2oil.py
0 comments on commit
1400fe1