Results for special-vars.test.sh

casedashbashmkshoshosh_ALTosh-byterundescription
0pass pass pass pass pass FAIL $PWD is set
details
1pass pass BUG pass pass FAIL $PWD is not only set, but exported
detailsdetails
2pass pass pass pass pass FAIL $HOME is NOT set
details
3pass pass pass pass pass FAIL $1 .. $9 are scoped, while $0 is not
details
4pass pass pass pass pass FAIL $?
details
5pass pass pass pass pass FAIL $#
details
6N-I pass N-I FAIL FAIL FAIL $_
detailsdetailsdetailsdetailsdetails
7pass pass pass pass pass FAIL $$ looks like a PID
details
8pass pass pass pass pass FAIL $$ doesn't change with subshell or command sub
details
9N-I pass pass FAIL FAIL FAIL $BASHPID DOES change with subshell and command sub
detailsdetailsdetailsdetails
10pass pass pass pass pass FAIL Background PID $! looks like a PID
details
11pass pass pass FAIL FAIL FAIL $PPID
detailsdetailsdetails
12N-I pass pass pass pass FAIL $PIPESTATUS
detailsdetails
13N-I pass pass FAIL FAIL FAIL $RANDOM
detailsdetailsdetailsdetails
14N-I pass N-I pass pass FAIL $UID and $EUID
detailsdetailsdetails
15N-I pass N-I pass pass FAIL $OSTYPE is non-empty
detailsdetailsdetails
16N-I pass N-I pass pass FAIL $HOSTNAME
detailsdetailsdetails

65 passed, 0 ok, 11 known unimplemented, 1 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh-byterun0 $PWD is set

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
mksh1 $PWD is not only set, but exported

stdout:
stderr: 
osh-byterun1 $PWD is not only set, but exported

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun2 $HOME is NOT set

[osh-byterun stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun3 $1 .. $9 are scoped, while $0 is not

[osh-byterun stdout] Expected 'sh a b\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun4 $?

[osh-byterun stdout] Expected u'0\n33\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun5 $#

[osh-byterun stdout] Expected '4\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash6 $_

stdout:
hi

stderr:
mksh6 $_

stdout:
hi

stderr:
osh6 $_

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

stdout:
hi

stderr:
osh_ALT6 $_

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

stdout:
hi

stderr:
osh-byterun6 $_

[osh-byterun stdout] Expected u'hi\nhi\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun7 $$ looks like a PID

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun8 $$ doesn't change with subshell or command sub

[osh-byterun stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[osh-byterun status] Expected 3, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash9 $BASHPID DOES change with subshell and command sub

stdout:
stderr: 
empty BASHPID in parent
osh9 $BASHPID DOES change with subshell and command sub

[osh stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[osh status] Expected 3, got 1

stdout:
stderr: 
empty BASHPID in parent
osh_ALT9 $BASHPID DOES change with subshell and command sub

[osh_ALT stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
empty BASHPID in parent
osh-byterun9 $BASHPID DOES change with subshell and command sub

[osh-byterun stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[osh-byterun status] Expected 3, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun10 Background PID $! looks like a PID

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh11 $PPID

[osh status] Expected 0, got 1

stdout:
stderr: 
osh_ALT11 $PPID

[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
osh-byterun11 $PPID

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash12 $PIPESTATUS

stdout:
stderr: 
_tmp/spec-bin/dash: 2: Bad substitution
osh-byterun12 $PIPESTATUS

[osh-byterun stdout] Expected "['0', '33', '0']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash13 $RANDOM

stdout:
0
stderr:
osh13 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
osh_ALT13 $RANDOM

[osh_ALT status] Expected 0, got 99

stdout:
40
stderr:
osh-byterun13 $RANDOM

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash14 $UID and $EUID

stdout:
stderr: 
mksh14 $UID and $EUID

stdout:
stderr: 
osh-byterun14 $UID and $EUID

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash15 $OSTYPE is non-empty

stdout:
status=1
stderr:
mksh15 $OSTYPE is non-empty

stdout:
status=1
stderr:
osh-byterun15 $OSTYPE is non-empty

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash16 $HOSTNAME

stdout:
status=1
stderr:
mksh16 $HOSTNAME

stdout:
status=1
stderr:
osh-byterun16 $HOSTNAME

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend