oilshell.org

15 osh2oil failures

books/wicked_cool_shell_scripts_2e/4/zgrep
  FATAL: RuntimeError('Got [ without ]',)

  
books/wicked_cool_shell_scripts_2e/4/zcat
  FATAL: RuntimeError('Got [ without ]',)

  
minix/commands/scripts/DESCRIBE.sh
    	par=`expr \\( \\( $minor - 128 \\) / 4 \\) % 4`
  	              ^~
_tmp/wild/src/minix/commands/scripts/DESCRIBE.sh:98: Invalid function name

  
distro/aboriginal/host-tools.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 844, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 662, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 813, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoShAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 538, in DoShAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 935, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub

  
distro/aboriginal/www/screenshots/screenshots.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 741, in DoCommand
    self.DoCommand(child, new_local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 662, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 813, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 844, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 813, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoShAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 538, in DoShAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 935, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub

  
distro/aboriginal/sources/utility_functions.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 741, in DoCommand
    self.DoCommand(child, new_local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 813, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoShAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 538, in DoShAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 935, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub

  
gnu/binutils-2.26/ld/genscrba.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 741, in DoCommand
    self.DoCommand(child, new_local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 844, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 633, in DoCommand
    self.DoWordInCommand(w, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub

  
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: RuntimeError('Got [ without ]',)

  
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/chef-bcpc/legacy_scripts/cluster-check.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 844, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 813, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 844, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoShAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 538, in DoShAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 935, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub

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

  
cloud/kubernetes/examples/storage/vitess/vttablet-down.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoShAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 538, in DoShAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 935, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub

  
cloud/kubernetes/examples/storage/vitess/vttablet-up.sh
  Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 843, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 775, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 84, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 574, in DoCommand
    self.DoCommand(child, local_symbols, at_top_level=at_top_level)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 791, in DoCommand
    self.DoCommand(node.body, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 761, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoShAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 538, in DoShAssignment
    self.DoWordAsExpr(pair.rhs, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 935, in DoWordAsExpr
    self.DoWordInCommand(node, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1113, in DoWordInCommand
    self.DoWordPart(part, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 1326, in DoWordPart
    raise AssertionError(node.__class__.__name__)
AssertionError: word_part__ExprSub