Results for vars-special.test.sh

statusoshosh-cpp
pass 3333
ok 11
FAIL 22
total3636
caseoshosh-cppdescription
0pass pass $PWD is set
1pass pass $PWD is not only set, but exported
2pass pass $PATH is set if unset at startup
3pass pass $HOME is NOT set
4pass pass $1 .. $9 are scoped, while $0 is not
5pass pass $?
6pass pass $#
7pass pass $$ looks like a PID
8pass pass $$ doesn't change with subshell or command sub
9pass pass $BASHPID DOES change with subshell and command sub
10pass pass Background PID $! looks like a PID
11pass pass $PPID
12pass pass $PIPESTATUS
13FAIL FAIL $RANDOM
detailsdetails
14pass pass $UID and $EUID
15pass pass $OSTYPE is non-empty
16pass pass $HOSTNAME
17pass pass $LINENO is the current line, not line of function call
18pass pass $LINENO in "bare" redirect arg (bug regression)
19pass pass $LINENO in redirect arg (bug regression)
20pass pass $LINENO in [[
21pass pass $LINENO in ((
22pass pass $LINENO in for loop
23pass pass $LINENO in other for loops
24FAIL FAIL $LINENO in for (( loop
detailsdetails
25pass pass $LINENO for assignment
26pass pass $_ with simple command and evaluation
27pass pass $_ and ${_}
28pass pass $_ with word splitting
29pass pass $_ with pipeline and subshell
30pass pass $_ with && and ||
31pass pass $_ is not reset with (( and [[
32ok ok $_ with assignments, arrays, etc.
detailsdetails
33pass pass $_ with loop
34pass pass $_ is not undefined on first use
35pass pass BASH_VERSION / OIL_VERSION
66 passed, 2 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh13 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
osh-cpp13 $RANDOM

[osh-cpp status] Expected 0, got 99

stdout:
90
stderr:
osh24 $LINENO in for (( loop

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

stdout:
one
0
1
2
stderr:
osh-cpp24 $LINENO in for (( loop

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

stdout:
one
0
1
2
stderr:
osh32 $_ with assignments, arrays, etc.

stdout:
colon [foo]
bare assign [colon [foo]]
declare [bare assign [colon [foo]]]
array [declare [bare assign [colon [foo]]]]
declare array [array [declare [bare assign [colon [foo]]]]]
declare flag [declare array [array [declare [bare assign [colon [foo]]]]]]
stderr:
osh-cpp32 $_ with assignments, arrays, etc.

stdout:
colon [foo]
bare assign [colon [foo]]
declare [bare assign [colon [foo]]]
array [declare [bare assign [colon [foo]]]]
declare array [array [declare [bare assign [colon [foo]]]]]
declare flag [declare array [array [declare [bare assign [colon [foo]]]]]]
stderr: