Results for vars-special.test.sh

statusoshosh_.pyosh_.cc
pass 252323
FAIL 688
total313131
caseoshosh_.pyosh_.ccdescription
0pass pass pass $PWD is set
1pass pass pass $PWD is not only set, but exported
2pass pass pass $PATH is set if unset at startup
3pass pass pass $HOME is NOT set
4pass FAIL FAIL $1 .. $9 are scoped, while $0 is not
detailsdetails
5pass pass pass $?
6pass pass pass $#
7FAIL FAIL FAIL $_
detailsdetailsdetails
8pass pass pass $$ looks like a PID
9pass pass pass $$ doesn't change with subshell or command sub
10pass pass pass $BASHPID DOES change with subshell and command sub
11pass pass pass Background PID $! looks like a PID
12pass pass pass $PPID
13pass pass pass $PIPESTATUS
14FAIL FAIL FAIL $RANDOM
detailsdetailsdetails
15pass pass pass $UID and $EUID
16pass pass pass $OSTYPE is non-empty
17pass pass pass $HOSTNAME
18pass pass pass $LINENO is the current line, not line of function call
19pass pass pass $LINENO in "bare" redirect arg (bug regression)
20pass pass pass $LINENO in redirect arg (bug regression)
21pass pass pass $LINENO for [[
22pass pass pass $LINENO for ((
23pass pass pass $LINENO in for loop
24pass pass pass $LINENO in other for loops
25FAIL FAIL FAIL $LINENO in for (( loop
detailsdetailsdetails
26pass pass pass $LINENO for assignment
27FAIL FAIL FAIL $_
detailsdetailsdetails
28FAIL FAIL FAIL $_ with assignments, arrays, etc.
detailsdetailsdetails
29FAIL FAIL FAIL $_ undefined
detailsdetailsdetails
30pass FAIL FAIL BASH_VERSION / OIL_VERSION
detailsdetails
71 passed, 0 OK, 0 not implemented, 0 BUG, 22 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh_.py4 $1 .. $9 are scoped, while $0 is not

[osh_.py stdout] Expected 'sh a b\n', got 'sh_eval.py a b\n'

stdout:
sh_eval.py a b
stderr:
osh_.cc4 $1 .. $9 are scoped, while $0 is not

[osh_.cc stdout] Expected 'sh a b\n', got 'sh_eval.stripped a b\n'

stdout:
sh_eval.stripped a b
stderr:
osh7 $_

[osh stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
osh_.py7 $_

[osh_.py stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
osh_.cc7 $_

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

stdout:
hi

stderr:
osh14 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
osh_.py14 $RANDOM

[osh_.py status] Expected 0, got 1

stdout:
0
stderr:
osh_.cc14 $RANDOM

[osh_.cc status] Expected 0, got 1

stdout:
0
stderr:
osh25 $LINENO in for (( loop

[osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
osh_.py25 $LINENO in for (( loop

[osh_.py stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
osh_.cc25 $LINENO in for (( loop

[osh_.cc stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
osh27 $_

[osh stdout] Expected '1\nfoobar\n', got '\n\n'

stdout:

stderr:
osh_.py27 $_

[osh_.py stdout] Expected '1\nfoobar\n', got '\n\n'

stdout:

stderr:
osh_.cc27 $_

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

stdout:

stderr:
osh28 $_ with assignments, arrays, etc.

[osh stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n'

stdout:
s:
s:
a:
a:
flag:
stderr:
osh_.py28 $_ with assignments, arrays, etc.

[osh_.py stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n'

stdout:
s:
s:
a:
a:
flag:
stderr:
osh_.cc28 $_ with assignments, arrays, etc.

[osh_.cc stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n'

stdout:
s:
s:
a:
a:
flag:
stderr:
osh29 $_ undefined

[osh stdout] Expected 'nonempty=0\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  echo $_
       ^~
[ -c flag ]:1: fatal: Undefined variable '_'
osh_.py29 $_ undefined

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

stdout:
stderr: 
  echo $_
       ^~
[ -c flag ]:1: fatal: Undefined variable '_'
osh_.cc29 $_ undefined

[osh_.cc stdout] Expected 'nonempty=0\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  echo $_
  ^~~~
[ -c flag ]:1: fatal: Undefined variable '_'
osh_.py30 BASH_VERSION / OIL_VERSION

[osh_.py stdout] Expected 'matched=0\n', got 'no version\n'

stdout:
no version
stderr:
osh_.cc30 BASH_VERSION / OIL_VERSION

[osh_.cc stdout] Expected 'matched=0\n', got 'no version\n'

stdout:
no version
stderr: