Results for assign-extended.test.sh

statusoshosh_.pyosh_.cc
pass 323229
ok 111
N-I 111
FAIL 003
total343434
caseoshosh_.pyosh_.ccdescription
0pass pass pass local -a
1pass pass pass declare -a
2N-I N-I N-I indexed LHS with spaces (not allowed in OSH)
detailsdetailsdetails
3pass pass pass declare -f exit code indicates function existence
4pass pass pass declare -F prints function names
5pass pass pass declare -p var (exit status)
6pass pass pass declare
7pass pass pass declare -p
8pass pass pass declare -p var
9pass pass pass declare -p arr
10pass pass pass declare -p foo=bar doesn't make sense
11pass pass pass declare -pnrx
12pass pass pass declare -paA
13pass pass pass declare -pnrx var
14pass pass pass declare -pg
15pass pass pass declare -pg var
16pass pass pass ble.sh: eval -- "$(declare -p var arr)"
17pass pass pass eval -- "$(declare -p arr)" (restore arrays w/ unset elements)
18pass pass pass typeset -f
19pass pass pass typeset -p
20pass pass pass typeset -r makes a string readonly
21pass pass pass typeset -ar makes it readonly
22pass pass FAIL typeset -x makes it exported
details
23pass pass pass Multiple assignments / array assignments on a line
24pass pass pass Env bindings shouldn't contain array assignments
25pass pass pass syntax error in array assignment
26pass pass pass declare -g (bash-specific; bash-completion uses it)
27ok ok ok myvar=typeset (another form of dynamic assignment)
detailsdetailsdetails
28pass pass pass dynamic array parsing is not allowed
29pass pass FAIL dynamic flag in array in assign builtin
details
30pass pass FAIL typeset +x
details
31pass pass pass typeset +r removes read-only attribute (TODO: documented in bash to do nothing)
32pass pass pass function name with /
33pass pass pass invalid var name
93 passed, 3 OK, 3 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh2 indexed LHS with spaces (not allowed in OSH)

stdout:
status=127
[]
stderr:
  a[1 * 1]=x a[ 1 + 2 ]=z
  ^~
[ stdin ]:1: 'a[1' not found
osh_.py2 indexed LHS with spaces (not allowed in OSH)

stdout:
status=127
[]
stderr:
  a[1 * 1]=x a[ 1 + 2 ]=z
  ^~
[ stdin ]:1: 'a[1' not found
osh_.cc2 indexed LHS with spaces (not allowed in OSH)

stdout:
status=127
[]
stderr:
  a[1 * 1]=x a[ 1 + 2 ]=z
  ^~
[ stdin ]:1: 'a[1' not found
osh_.cc22 typeset -x makes it exported

[osh_.cc stdout] Expected 'lib/\n', got 'None\n'

stdout:
None
stderr:
osh27 myvar=typeset (another form of dynamic assignment)

stdout:
a b
stderr:
osh_.py27 myvar=typeset (another form of dynamic assignment)

stdout:
a b
stderr:
osh_.cc27 myvar=typeset (another form of dynamic assignment)

stdout:
a b
stderr:
osh_.cc29 dynamic flag in array in assign builtin

[osh_.cc stdout] Expected 'foo=F\nbar=B\nF\nB\n', got 'foo=F\nbar=B\nNone\nNone\n'

stdout:
foo=F
bar=B
None
None
stderr:
osh_.cc30 typeset +x

[osh_.cc stdout] Expected 'E\nNone\n', got 'None\nNone\n'

stdout:
None
None
stderr: