oilshell.org

10 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
  Line 98 of '_tmp/wild/src/minix/commands/scripts/DESCRIBE.sh'
  	par=`expr \\( \\( $minor - 128 \\) / 4 \\) % 4`
  	                  ^~~~~~
Expected word type <Id_t Right_FuncDef 93>, got <Id_t Word_Compound 199>

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

  
freebsd-11.1/bin/ed/test/mkscripts.sh
  Line 28 of '_tmp/wild/src/freebsd-11.1/bin/ed/test/mkscripts.sh'
  	$ED - <<-EOF
  	      ^~~
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 786, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 755, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 733, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 666, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 88, 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 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 900, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 560, in DoAssignment
    self.cursor.SkipUntil(rhs_spid)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 61, 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 786, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 755, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 733, in AppBundleMain
    return OshCommandMain(main_argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 666, in OshCommandMain
    osh2oil.PrintAsOil(arena, node)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 88, in PrintAsOil
    fixer.DoCommand(node, None, at_top_level=True)  # no local symbols yet
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 666, in DoCommand
    self.DoCommand(child, local_symbols)
  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 666, in DoCommand
    self.DoCommand(child, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 650, in DoCommand
    self.DoAssignment(node, at_top_level, local_symbols)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 560, in DoAssignment
    self.cursor.SkipUntil(rhs_spid)
  File "/home/andy/git/oilshell/oil/tools/osh2oil.py", line 61, in SkipUntil
    assert next_span_id != const.NO_INTEGER, next_span_id
AssertionError: 16777215

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

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