oilshell.org

11 osh2oil failures

books/wicked_cool_shell_scripts_2e/4/zgrep
  FATAL: Got [ without ]

  
books/wicked_cool_shell_scripts_2e/4/zcat
  FATAL: Got [ without ]

  
minix/commands/scripts/DESCRIBE.sh
    	par=`expr \\( \\( $minor - 128 \\) / 4 \\) % 4`
  	                  ^~~~~~
_tmp/wild/src/minix/commands/scripts/DESCRIBE.sh:98: Expected word type <Id_t Right_FuncDef 91>, got <Id_t Word_Compound 191>

  
esoteric/j/j
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 865, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 833, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 808, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 740, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 81, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 567, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 643, in DoCommand
    self.DoAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 530, in DoAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 928, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1106, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1128, in DoWordPart
    span_id = word.LeftMostSpanForPart(node)
  File "/home/andy/git/oilshell/oil/osh/word.py", line 133, in LeftMostSpanForPart
    return LeftMostSpanForWord(part.words[0])  # Hm this is a=(1 2 3)
  File "/home/andy/git/oilshell/oil/osh/word.py", line 261, in LeftMostSpanForWord
    return LeftMostSpanForPart(begin)
  File "/home/andy/git/oilshell/oil/osh/word.py", line 174, in LeftMostSpanForPart
    raise AssertionError(part.__class__.__name__)
AssertionError: word_part__BracedRange

  
freebsd-11.1/bin/ed/test/ckscripts.sh
    	base=`$ED - \!"echo $i" <<-EOF
  	                        ^~~
_tmp/wild/src/freebsd-11.1/bin/ed/test/ckscripts.sh:25: Couldn't find terminator for here doc that starts here

  
freebsd-11.1/bin/ed/test/mkscripts.sh
    	$ED - <<-EOF
  	      ^~~
_tmp/wild/src/freebsd-11.1/bin/ed/test/mkscripts.sh:28: Couldn't find terminator for here doc that starts here

  
freebsd-11.1/bin/pkill/tests/pkill-j_test.sh
  FATAL: Got [ without ]

  
shell/ast/src/cmd/mam/mamdot.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 865, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 833, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 808, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 740, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 81, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 567, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 806, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 754, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 893, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 643, in DoCommand
    self.DoAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 553, in DoAssignment
    self.cursor.SkipUntil(rhs_spid)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 54, in SkipUntil
    assert next_span_id != const.NO_INTEGER, next_span_id
AssertionError: 16777215

  
shell/bash-completion/completions/crontab
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 865, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 833, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 808, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 740, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 81, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 659, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 734, in DoCommand
    self.DoCommand(child, new_local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 659, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 643, in DoCommand
    self.DoAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 553, in DoAssignment
    self.cursor.SkipUntil(rhs_spid)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 54, in SkipUntil
    assert next_span_id != const.NO_INTEGER, next_span_id
AssertionError: 16777215

  
shell/shflags/examples/debug_output.sh
    FLAGS_HELP=`cat <<EOF
                  ^~
_tmp/wild/src/shell/shflags/examples/debug_output.sh:19: Couldn't find terminator for here doc that starts here

  
cloud/sandstorm/install.sh
        `# Sandcats just needs the CN= (common name) in the request.` \
                                    ^
_tmp/wild/src/cloud/sandstorm/install.sh:2004: Expected ( after =, got ' '