Results for append.test.sh

statusoshosh_.pyosh_.cc
pass 999
ok 222
total111111
caseoshosh_.pyosh_.ccdescription
0pass pass pass Append string to string
1pass pass pass Append array to array
2pass pass pass Append array to string should be an error
3pass pass pass Append string to array should be disallowed
4pass pass pass Append string to array element
5pass pass pass Append to last element
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 pass pass Append to nonexistent array is allowed
10pass pass pass Append used like env prefix is a parse error
27 passed, 6 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

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

dumb_alloc:
	gNumNew = 1727
	gNumDelete = 116
	gMemPos = 60256

	gNumMalloc = 58
	gNumFree = 0
	gMemPos2 = 10112
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

dumb_alloc:
	gNumNew = 1991
	gNumDelete = 175
	gMemPos = 69056

	gNumMalloc = 91
	gNumFree = 0
	gMemPos2 = 10640