Results for builtin-vars.test.sh

casedashbashmkshoshosh_ALTosh-byterundescription
0pass pass pass pass pass FAIL Export sets a global variable
details
1N-I pass N-I pass pass FAIL Export sets a global variable that persists after export -n
detailsdetailsdetails
2N-I pass N-I pass pass FAIL export -n undefined is ignored
detailsdetailsdetails
3pass pass pass pass pass FAIL Export a global variable and unset it
details
4pass pass pass pass pass FAIL Export existing global variables
details
5pass pass pass pass pass FAIL Export existing local variable
details
6pass pass pass pass pass FAIL Export a local that shadows a global
details
7pass pass pass pass pass FAIL Export a variable before defining it
details
8pass pass pass pass pass FAIL Exporting a parent func variable (dynamic scope)
details
9pass pass pass pass pass FAIL Dependent export setting
details
10pass pass pass pass pass FAIL Exporting a variable doesn't change it
details
11ok BUG ok pass pass pass assign to readonly variable
detailsdetailsdetails
12ok pass ok pass pass pass assign to readonly variable - errexit
detailsdetails
13pass pass pass pass pass FAIL Unset a variable
details
14pass pass pass pass pass FAIL Unset exit status
details
15pass pass pass pass pass FAIL Unset nonexistent variable
details
16ok pass pass pass pass FAIL Unset readonly variable
detailsdetails
17N-I pass N-I pass pass FAIL Unset a function without -f
detailsdetailsdetails
18pass pass pass pass pass FAIL Unset has dynamic scope
details
19pass pass pass pass pass FAIL Unset -v
details
20pass pass pass pass pass FAIL Unset -f
details
21N-I pass pass FAIL FAIL FAIL Unset array member
detailsdetailsdetailsdetails
22N-I pass pass FAIL FAIL FAIL Unset array member with expression
detailsdetailsdetailsdetails
23pass pass pass pass pass FAIL Use local twice
details
24ok pass pass pass pass pass Local without variable is still unset!
details

109 passed, 6 ok, 8 known unimplemented, 1 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

osh-byterun0 Export sets a global variable

[osh-byterun stdout] Expected u'X\nX\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
dash1 Export sets a global variable that persists after export -n

stdout:
X
X
stderr:
_tmp/spec-bin/dash: 5: export: Illegal option -n
mksh1 Export sets a global variable that persists after export -n

stdout:
X
X
stderr:
_tmp/spec-bin/mksh: <stdin>[5]: export: -n: unknown option
osh-byterun1 Export sets a global variable that persists after export -n

[osh-byterun stdout] Expected u'X\nX\nX\nNone\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
dash2 export -n undefined is ignored

stdout:
stderr: 
_tmp/spec-bin/dash: 2: export: Illegal option -n
mksh2 export -n undefined is ignored

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: export: -n: unknown option
osh-byterun2 export -n undefined is ignored

[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
osh-byterun3 Export a global variable and unset it

[osh-byterun stdout] Expected u'X\nX\n\nNone\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 Export existing global variables

[osh-byterun stdout] Expected u'g1\ng2\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 Export existing local variable

[osh-byterun stdout] Expected u'local1\nNone\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-byterun6 Export a local that shadows a global

[osh-byterun stdout] Expected u'local1\nNone\nglobal\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 Export a variable before defining it

[osh-byterun stdout] Expected 'u\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-byterun8 Exporting a parent func variable (dynamic scope)

[osh-byterun stdout] Expected u'before inner\nNone\ninner: X\nX\nafter inner\nX\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-byterun9 Dependent export setting

[osh-byterun stdout] Expected 'v=None\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-byterun10 Exporting a variable doesn't change it

[osh-byterun stdout] Expected 'not changed\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
dash11 assign to readonly variable

stdout:
stderr: 
_tmp/spec-bin/dash: 2: foo: is read only
bash11 assign to readonly variable

stdout:
status=1
stderr:
_tmp/spec-bin/bash: line 2: foo: readonly variable
mksh11 assign to readonly variable

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: read-only: foo
dash12 assign to readonly variable - errexit

stdout:
stderr: 
_tmp/spec-bin/dash: 3: foo: is read only
mksh12 assign to readonly variable - errexit

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[3]: read-only: foo
osh-byterun13 Unset a variable

[osh-byterun stdout] Expected u'foo=bar\nfoo=\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-byterun14 Unset exit status

[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
osh-byterun15 Unset nonexistent variable

[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 Unset readonly variable

stdout:
stderr: 
_tmp/spec-bin/dash: 2: unset: R: is read only
osh-byterun16 Unset readonly variable

[osh-byterun stdout] Expected 'status=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
dash17 Unset a function without -f

stdout:
foo
foo
stderr:
mksh17 Unset a function without -f

stdout:
foo
foo
stderr:
osh-byterun17 Unset a function without -f

[osh-byterun stdout] Expected 'foo\n', got ''
[osh-byterun status] Expected 127, 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-byterun18 Unset has dynamic scope

[osh-byterun stdout] Expected u'foo=bar\nfoo=\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-byterun19 Unset -v

[osh-byterun stdout] Expected u'foo=\nfunction foo\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-byterun20 Unset -f

[osh-byterun stdout] Expected u'foo=bar\nstatus=127\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
dash21 Unset array member

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected
osh21 Unset array member

[osh stdout] Expected 'x z len=2\n', got 'x y z len=3\n'

stdout:
x y z len=3
stderr:
osh_ALT21 Unset array member

[osh_ALT stdout] Expected 'x z len=2\n', got 'x y z len=3\n'

stdout:
x y z len=3
stderr:
osh-byterun21 Unset array member

[osh-byterun stdout] Expected 'x z len=2\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
dash22 Unset array member with expression

stdout:
stderr: 
_tmp/spec-bin/dash: 2: Syntax error: "(" unexpected
osh22 Unset array member with expression

[osh stdout] Expected 'x z len=2\n', got 'w x y z len=4\n'

stdout:
w x y z len=4
stderr:
osh_ALT22 Unset array member with expression

[osh_ALT stdout] Expected 'x z len=2\n', got 'w x y z len=4\n'

stdout:
w x y z len=4
stderr:
osh-byterun22 Unset array member with expression

[osh-byterun stdout] Expected 'x z len=2\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-byterun23 Use local twice

[osh-byterun stdout] Expected 'bar\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
dash24 Local without variable is still unset!

stdout:
stderr: 
_tmp/spec-bin/dash: 4: foo: parameter not set