Results for vars-special.test.sh

statusoshosh_.pyosh_.cc
pass 252219
FAIL 6912
total313131
caseoshosh_.pyosh_.ccdescription
0pass pass pass $PWD is set
1pass pass FAIL $PWD is not only set, but exported
details
2pass pass pass $PATH is set if unset at startup
3pass pass FAIL $HOME is NOT set
details
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 FAIL FAIL Background PID $! looks like a PID
detailsdetails
12pass pass pass $PPID
13pass pass FAIL $PIPESTATUS
details
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
66 passed, 0 OK, 0 not implemented, 0 BUG, 27 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh_.cc1 $PWD is not only set, but exported

[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
osh_.cc3 $HOME is NOT set

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

stdout:
status=1
status=1
status=1
stderr:
terminate called after throwing an instance of 'NotImplementedError*'
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:
osh_.py11 Background PID $! looks like a PID

[osh_.py stdout] Expected 'status=0\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/uke/oil/bin/osh_eval.py", line 66, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/osh_eval.py", line 34, in main
    None)
  File "/home/uke/oil/core/shell_native.py", line 486, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1644, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 711, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork)
  File "/home/uke/oil/osh/cmd_eval.py", line 550, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/uke/oil/core/executor.py", line 242, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/uke/oil/core/executor.py", line 129, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 33
osh_.cc11 Background PID $! looks like a PID

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

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
osh_.cc13 $PIPESTATUS

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

stdout:
[]
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: