Results for quote.test.sh

statusoshosh_.pyosh_.cc
pass 312824
FAIL 037
total313131
caseoshosh_.pyosh_.ccdescription
0pass pass pass Unquoted words
1pass pass pass Single-quoted
2pass pass pass Two single-quoted parts
3pass pass pass Unquoted and single quoted
4pass pass pass newline inside single-quoted string
5pass pass pass Double-quoted
6pass pass pass Mix of quotes in one word
7pass pass pass Var substitution
8pass pass pass Var substitution with braces
9pass pass pass Var substitution with braces, quoted
10pass pass pass Var length
11pass pass FAIL Storing backslashes and then echoing them
details
12pass pass pass Backslash escapes
13pass pass pass Backslash escapes inside double quoted string
14pass pass pass C-style backslash escapes inside double quoted string
15pass pass pass Literal $
16pass pass pass Quoted Literal $
17pass pass pass Line continuation
18pass pass pass Line continuation inside double quotes
19pass pass FAIL $? split over multiple lines
details
20pass pass pass Unterminated single quote
21pass pass pass Unterminated double quote
22pass pass pass Semicolon
23pass pass pass No tab escapes within single quotes
24pass pass pass $''
25pass pass FAIL $'' with quotes
details
26pass pass FAIL $'' with newlines
details
27pass FAIL FAIL $'' octal escapes don't have leading 0
detailsdetails
28pass FAIL FAIL $'' octal escapes with fewer than 3 chars
detailsdetails
29pass pass pass $""
30pass FAIL FAIL printf
detailsdetails
83 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc11 Storing backslashes and then echoing them

[osh_.cc stdout] Expected '\\ \\\\\n\\ \\\\\n', got '\\\n\\ \\\\\n'

stdout:
\
\ \\
stderr:
osh_.cc19 $? split over multiple lines

[osh_.cc stdout] Expected '$?\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:37: List<Str *> *libc::glob(Str *): Assertion `0' failed.
osh_.cc25 $'' with quotes

[osh_.cc stdout] Expected 'single \' double "\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:578: V Dict<Str *, Str *>::index(K) [K = Str *, V = Str *]: Assertion `0' failed.
osh_.cc26 $'' with newlines

[osh_.cc stdout] Expected u'col1\ncol2\ncol3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:578: V Dict<Str *, Str *>::index(K) [K = Str *, V = Str *]: Assertion `0' failed.
osh_.py27 $'' octal escapes don't have leading 0

[osh_.py stdout] Expected ' 001 377\n', got ''

stdout:
stderr: 
osh_.cc27 $'' octal escapes don't have leading 0

[osh_.cc stdout] Expected ' 001 377\n', got ''

stdout:
stderr: 
osh_.py28 $'' octal escapes with fewer than 3 chars

[osh_.py stdout] Expected ' 001 \\t \\t I \\n\n', got ''

stdout:
stderr: 
osh_.cc28 $'' octal escapes with fewer than 3 chars

[osh_.cc stdout] Expected ' 001 \\t \\t I \\n\n', got ''

stdout:
stderr: 
osh_.py30 printf

[osh_.py stdout] Expected u'c1\tc2\nc3\tc4\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 22
osh_.cc30 printf

[osh_.cc stdout] Expected u'c1\tc2\nc3\tc4\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.