Results for append.test.sh

statusoshosh_.pyosh_.cc
pass 955
ok 222
FAIL 044
total111111
caseoshosh_.pyosh_.ccdescription
0pass pass pass Append string to string
1pass FAIL FAIL Append array to array
detailsdetails
2pass pass pass Append array to string should be an error
3pass pass pass Append string to array should be disallowed
4pass FAIL FAIL Append string to array element
detailsdetails
5pass FAIL FAIL Append to last element
detailsdetails
6ok ok ok Try to append list to element
detailsdetailsdetails
7pass pass pass Strings have value semantics, not reference semantics
8ok ok ok Append to nonexistent string
detailsdetailsdetails
9pass FAIL FAIL Append to nonexistent array is allowed
detailsdetails
10pass pass pass Append used like env prefix is a parse error
19 passed, 6 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py1 Append array to array

[osh_.py stdout] Expected "['x', 'y', 't', 'u v']\n", got "(cmd_value.Argv argv:[argv.py x y t 'u v'] arg_spids:[17 19 19 19 19])\n"

stdout:
(cmd_value.Argv argv:[argv.py x y t 'u v'] arg_spids:[17 19 19 19 19])
stderr:
Unhandled SimpleCommand
osh_.cc1 Append array to array

[osh_.cc stdout] Expected "['x', 'y', 't', 'u v']\n", got "(cmd_value.Argv argv:[argv.py x y t 'u v'] arg_spids:[17 19 19 19 19])\n"

stdout:
(cmd_value.Argv argv:[argv.py x y t 'u v'] arg_spids:[17 19 19 19 19])
stderr:
Unhandled SimpleCommand
osh_.py4 Append string to array element

[osh_.py stdout] Expected "['x', 'yz']\n", got '(cmd_value.Argv argv:[argv.py x yz] arg_spids:[15 17 17])\n'

stdout:
(cmd_value.Argv argv:[argv.py x yz] arg_spids:[15 17 17])
stderr:
Unhandled SimpleCommand
osh_.cc4 Append string to array element

[osh_.cc stdout] Expected "['x', 'yz']\n", got '(cmd_value.Argv argv:[argv.py x yz] arg_spids:[15 17 17])\n'

stdout:
(cmd_value.Argv argv:[argv.py x yz] arg_spids:[15 17 17])
stderr:
Unhandled SimpleCommand
osh_.py5 Append to last element

[osh_.py stdout] Expected "['1', '2 3 4']\n", got "(cmd_value.Argv argv:[argv.py 1 '2 3 4'] arg_spids:[19 21 21])\n"

stdout:
(cmd_value.Argv argv:[argv.py 1 '2 3 4'] arg_spids:[19 21 21])
stderr:
Unhandled SimpleCommand
osh_.cc5 Append to last element

[osh_.cc stdout] Expected "['1', '2 3 4']\n", got "(cmd_value.Argv argv:[argv.py 1 '2 3 4'] arg_spids:[19 21 21])\n"

stdout:
(cmd_value.Argv argv:[argv.py 1 '2 3 4'] arg_spids:[19 21 21])
stderr:
Unhandled SimpleCommand
osh6 Try to append list to element

stdout:
stderr: 
  a[-1]+=(4 5)
          ^
[ stdin ]:2: Expected ) in function definition
osh_.py6 Try to append list to element

stdout:
stderr: 
  a[-1]+=(4 5)
          ^
[ stdin ]:2: Expected ) in function definition
osh_.cc6 Try to append list to element

stdout:
stderr: 
  a[-1]+=(4 5)
          ^
[ stdin ]:2: dynamic_fmt_dummy
osh8 Append to nonexistent string

stdout:
stderr: 
    local a+=a
          ^~~
[ stdin ]:2: fatal: += not allowed in assignment builtin
osh_.py8 Append to nonexistent string

stdout:
stderr: 
    local a+=a
          ^~~
[ stdin ]:2: fatal: += not allowed in assignment builtin
osh_.cc8 Append to nonexistent string

stdout:
stderr: 
    local a+=a
    ^~~~~
[ stdin ]:2: fatal: += not allowed in assignment builtin
osh_.py9 Append to nonexistent array is allowed

[osh_.py stdout] Expected "['c', 'd']\n", got '(cmd_value.Argv argv:[argv.py c d] arg_spids:[7 9 9])\n'

stdout:
(cmd_value.Argv argv:[argv.py c d] arg_spids:[7 9 9])
stderr:
Unhandled SimpleCommand
osh_.cc9 Append to nonexistent array is allowed

[osh_.cc stdout] Expected "['c', 'd']\n", got '(cmd_value.Argv argv:[argv.py c d] arg_spids:[7 9 9])\n'

stdout:
(cmd_value.Argv argv:[argv.py c d] arg_spids:[7 9 9])
stderr:
Unhandled SimpleCommand