Results for here-doc.test.sh

statusoshosh_.pyosh_.cc
pass 33241
ok 111
FAIL 0932
total343434
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL Here string
details
1pass pass FAIL Here string with $
details
2pass pass FAIL Here redirect with explicit descriptor
details
3pass FAIL FAIL Here doc from another input file descriptor
detailsdetails
4pass FAIL FAIL Multiple here docs with different descriptors
detailsdetails
5ok ok ok Here doc with bad var delimiter
detailsdetailsdetails
6pass pass pass Here doc with bad comsub delimiter
7pass FAIL FAIL Here doc and < redirect -- last one wins
detailsdetails
8pass FAIL FAIL < redirect and here doc -- last one wins
detailsdetails
9pass pass FAIL Here doc with var sub, command sub, arith sub
details
10pass pass FAIL Here doc in middle. And redirects in the middle.
details
11pass pass FAIL Here doc line continuation
details
12pass pass FAIL Here doc with quote expansion in terminator
details
13pass pass FAIL Here doc with multiline double quoted string
details
14pass pass FAIL Two here docs -- first is ignored; second ones wins!
details
15pass pass FAIL Here doc with line continuation, then pipe. Syntax error.
details
16pass FAIL FAIL Here doc with pipe on first line
detailsdetails
17pass FAIL FAIL Here doc with pipe continued on last line
detailsdetails
18pass pass FAIL Here doc with builtin 'read'
details
19pass pass FAIL Compound command here doc
details
20pass pass FAIL Here doc in while condition and here doc in body
details
21pass pass FAIL Here doc in while condition and here doc in body on multiple lines
details
22pass pass FAIL Here doc in while loop split up more
details
23pass pass FAIL Mixing << and <<-
details
24pass pass FAIL Two compound commands with two here docs
details
25pass pass FAIL Function def and execution with here doc
details
26pass FAIL FAIL Here doc as command prefix
detailsdetails
27pass pass FAIL Redirect after here doc
details
28pass pass FAIL here doc stripping tabs
details
29pass pass FAIL Here doc within subshell with boolean
details
30pass pass FAIL Here Doc in if condition
details
31pass pass FAIL Nested here docs which are indented
details
32pass FAIL FAIL Multiple here docs in pipeline
detailsdetails
33pass FAIL FAIL Multiple here docs in pipeline on multiple lines
detailsdetails
58 passed, 3 OK, 0 not implemented, 0 BUG, 41 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc0 Here string

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc1 Here string with $

[osh_.cc stdout] Expected u'one\ntwo\n\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc2 Here redirect with explicit descriptor

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py3 Here doc from another input file descriptor

[osh_.py stdout] Expected '8: here doc on descriptor\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  read_from_fd.py 8  8<<EOF
  ^~~~~~~~~~~~~~~
[ stdin ]:1: 'read_from_fd.py' not found
osh_.cc3 Here doc from another input file descriptor

[osh_.cc stdout] Expected '8: here doc on descriptor\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py4 Multiple here docs with different descriptors

[osh_.py stdout] Expected '0: fd0\n3: fd3\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  read_from_fd.py 0 3 <<EOF 3<<EOF3
  ^~~~~~~~~~~~~~~
[ stdin ]:1: 'read_from_fd.py' not found
osh_.cc4 Multiple here docs with different descriptors

[osh_.cc stdout] Expected '0: fd0\n3: fd3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh5 Here doc with bad var delimiter

stdout:
stderr: 
  cat <<${a}
        ^~
[ stdin ]:1: Invalid here doc delimiter
osh_.py5 Here doc with bad var delimiter

stdout:
stderr: 
  cat <<${a}
        ^~
[ stdin ]:1: Invalid here doc delimiter
osh_.cc5 Here doc with bad var delimiter

stdout:
stderr: 
  cat <<${a}
        ^~
[ stdin ]:1: Invalid here doc delimiter
osh_.py7 Here doc and < redirect -- last one wins

[osh_.py stdout] Expected 'hello\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  echo hello >$TMP/hello.txt  # temporary fix
             ^
[ stdin ]:1: Can't open '/hello.txt': Permission denied
  cat <<EOF <$TMP/hello.txt
            ^
[ stdin ]:2: Can't open '/hello.txt': No such file or directory
osh_.cc7 Here doc and < redirect -- last one wins

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py8 < redirect and here doc -- last one wins

[osh_.py stdout] Expected 'here\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  cat <$TMP/hello.txt <<EOF
      ^
[ stdin ]:1: Can't open '/hello.txt': No such file or directory
osh_.cc8 < redirect and here doc -- last one wins

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc9 Here doc with var sub, command sub, arith sub

[osh_.cc stdout] Expected 'var: v\ncommand: hi\narith: 3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc10 Here doc in middle. And redirects in the middle.

[osh_.cc stderr] Expected 'foo\nhere\nbar\n', got "osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc11 Here doc line continuation

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc12 Here doc with quote expansion in terminator

[osh_.cc stdout] Expected u'one\ntwo\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc13 Here doc with multiline double quoted string

[osh_.cc stdout] Expected 'one\ntwo\nthree\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc14 Two here docs -- first is ignored; second ones wins!

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc15 Here doc with line continuation, then pipe. Syntax error.

[osh_.cc status] Expected 2, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py16 Here doc with pipe on first line

[osh_.py stdout] Expected '3\n2\n1\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  cat <<EOF | tac
              ^~~
[ stdin ]:1: 'tac' not found
osh_.cc16 Here doc with pipe on first line

[osh_.cc stdout] Expected '3\n2\n1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py17 Here doc with pipe continued on last line

[osh_.py stdout] Expected '3\n2\n1\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  tac
  ^~~
[ stdin ]:6: 'tac' not found
osh_.cc17 Here doc with pipe continued on last line

[osh_.cc stdout] Expected '3\n2\n1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc18 Here doc with builtin 'read'

[osh_.cc stdout] Expected '=val1= =val2=\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc19 Compound command here doc

[osh_.cc stdout] Expected 'X 1\nX 2\nX 3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc20 Here doc in while condition and here doc in body

[osh_.cc stdout] Expected '1\n2\n3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc21 Here doc in while condition and here doc in body on multiple lines

[osh_.cc stdout] Expected '1\n2\n3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc22 Here doc in while loop split up more

[osh_.cc stdout] Expected '1\n2\n3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc23 Mixing << and <<-

[osh_.cc stdout] Expected u'one\n--\ntwo\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc24 Two compound commands with two here docs

[osh_.cc stdout] Expected u'X 1\nX 2\n==\nY 3\nY 4\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc25 Function def and execution with here doc

[osh_.cc stdout] Expected u'before\n1\n2\nafter\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py26 Here doc as command prefix

[osh_.py stdout] Expected u'3\n2\n1\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  <<EOF tac
        ^~~
[ stdin ]:1: 'tac' not found
osh_.cc26 Here doc as command prefix

[osh_.cc stdout] Expected u'3\n2\n1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc27 Redirect after here doc

[osh_.cc stderr] Expected 'out\n', got "osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc28 here doc stripping tabs

[osh_.cc stdout] Expected '1\n2\n3 # 2 tabs are both stripped\n 4 # spaces are preserved\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc29 Here doc within subshell with boolean

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc30 Here Doc in if condition

[osh_.cc stdout] Expected 'here doc in IF CONDITION\nTHEN executed\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc31 Nested here docs which are indented

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py32 Multiple here docs in pipeline

[osh_.py stdout] Expected '0: 3: fd3\n5: fd5\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
    read_from_fd.py 3 3<<EOF3 | read_from_fd.py 0 5 5<<EOF5read_from_fd.py 3 3<<EOF3 | read_from_fd.py 0 5 5<<EOF5
  
    ^                ~~~~~~~~~~~~~~ 
         ^~~~~~~~~~~~~~~
[ stdin ]:1: 'read_from_fd.py' not found
[ stdin ]:1: 'read_from_fd.py' not found
osh_.cc32 Multiple here docs in pipeline

[osh_.cc stdout] Expected '0: 3: fd3\n5: fd5\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py33 Multiple here docs in pipeline on multiple lines

[osh_.py stdout] Expected '0: 3: fd3\n5: fd5\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  read_from_fd.py 0 5 5<<EOF5
  ^~~~~~~~~~~~~~~
[ stdin ]:4: 'read_from_fd.py' not found
  read_from_fd.py 3 3<<EOF3 |
  ^~~~~~~~~~~~~~~
[ stdin ]:1: 'read_from_fd.py' not found
osh_.cc33 Multiple here docs in pipeline on multiple lines

[osh_.cc stdout] Expected '0: 3: fd3\n5: fd5\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.