Results for word-split.test.sh

statusoshosh_.pyosh_.cc
pass 33334
FAIL 7736
total404040
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL IFS is scoped
details
1pass pass FAIL Tilde sub is not split, but var sub is
details
2pass pass FAIL Word splitting
details
3pass pass FAIL Word splitting 2
details
4pass pass FAIL $*
details
5pass pass FAIL "$*"
details
6pass pass FAIL $@
details
7pass pass FAIL "$@"
details
8pass pass FAIL empty argv
details
9pass pass FAIL Word elision with space
details
10pass pass FAIL Word elision with non-whitespace IFS
details
11pass pass FAIL Leading/trailing word elision with non-whitespace IFS
details
12pass pass FAIL Leading ' ' vs leading ' _ '
details
13pass pass FAIL Multiple non-whitespace IFS chars.
details
14pass pass FAIL IFS with whitespace and non-whitepace.
details
15pass pass FAIL empty $@ and $* is elided
details
16pass pass FAIL unquoted empty arg is elided
details
17pass pass FAIL unquoted whitespace arg is elided
details
18pass pass FAIL empty literals are not elided
details
19pass pass FAIL no splitting when IFS is empty
details
20pass pass FAIL default value can yield multiple words
details
21pass pass FAIL default value can yield multiple words with part joining
details
22pass pass FAIL default value with unquoted IFS char
details
23pass pass FAIL IFS empty doesn't do splitting
details
24pass pass FAIL IFS unset behaves like $' \t\n'
details
25FAIL FAIL FAIL IFS='\'
detailsdetailsdetails
26FAIL FAIL FAIL IFS='\ '
detailsdetailsdetails
27pass pass FAIL IFS characters are glob metacharacters
details
28pass pass FAIL Trailing space
details
29pass pass pass Empty IFS (regression for bug)
30pass pass pass Unset IFS (regression for bug)
31pass pass pass IFS=o (regression for bug)
32pass pass FAIL IFS and joining arrays
details
33FAIL FAIL FAIL IFS and joining arrays by assignments
detailsdetailsdetails
34pass pass pass TODO
35FAIL FAIL FAIL IFS='' with $@ and $*
detailsdetailsdetails
36FAIL FAIL FAIL IFS='' with $@ and $* and printf
detailsdetailsdetails
37FAIL FAIL FAIL IFS='' with ${a[@]} and ${a[*]}
detailsdetailsdetails
38FAIL FAIL FAIL Bug #628 split on : with : in literal word
detailsdetailsdetails
39pass pass FAIL Bug #698, similar crash
details
70 passed, 0 OK, 0 not implemented, 0 BUG, 50 failed, 0 timeouts, 0 cases skipped
7 failed under osh

Details on runs that didn't PASS

osh_.cc0 IFS is scoped

[osh_.cc stdout] Expected u"['ab', 'd']\n['a', 'cd']\n", got "['a', 'cd']\n['ab', 'd']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['a', 'cd']
['ab', 'd']
stderr:
dumb_alloc:
	gNumNew = 2182
	gNumDelete = 195
	gMemPos = 73568

	gNumMalloc = 150
	gNumFree = 0
	gMemPos2 = 10976
osh_.cc1 Tilde sub is not split, but var sub is

[osh_.cc status] Expected 0, got 255

stdout:
['foo bar']
['foo', 'bar']
stderr:
dumb_alloc:
	gNumNew = 1921
	gNumDelete = 151
	gMemPos = 65984

	gNumMalloc = 117
	gNumFree = 0
	gMemPos2 = 10448
osh_.cc2 Word splitting

[osh_.cc status] Expected 0, got 255

stdout:
['1', '23 4']
stderr:
dumb_alloc:
	gNumNew = 1890
	gNumDelete = 148
	gMemPos = 65248

	gNumMalloc = 99
	gNumFree = 0
	gMemPos2 = 10160
osh_.cc3 Word splitting 2

[osh_.cc status] Expected 0, got 255

stdout:
['1', '23 45', '67 8']
stderr:
dumb_alloc:
	gNumNew = 2022
	gNumDelete = 176
	gMemPos = 68832

	gNumMalloc = 141
	gNumFree = 0
	gMemPos2 = 10832
osh_.cc4 $*

[osh_.cc status] Expected 0, got 255

stdout:
['-a', '1', 'b', '2', 'c', '3-']
stderr:
dumb_alloc:
	gNumNew = 2025
	gNumDelete = 186
	gMemPos = 68944

	gNumMalloc = 136
	gNumFree = 0
	gMemPos2 = 10752
osh_.cc5 "$*"

[osh_.cc status] Expected 0, got 255

stdout:
['-a 1 b 2 c 3-']
stderr:
dumb_alloc:
	gNumNew = 1953
	gNumDelete = 169
	gMemPos = 66640

	gNumMalloc = 94
	gNumFree = 0
	gMemPos2 = 10080
osh_.cc6 $@

[osh_.cc status] Expected 0, got 255

stdout:
['-a', '1', 'b', '2', 'c', '3-']
stderr:
dumb_alloc:
	gNumNew = 2025
	gNumDelete = 186
	gMemPos = 68944

	gNumMalloc = 136
	gNumFree = 0
	gMemPos2 = 10752
osh_.cc7 "$@"

[osh_.cc status] Expected 0, got 255

stdout:
['-a 1', 'b 2', 'c 3-']
stderr:
dumb_alloc:
	gNumNew = 1958
	gNumDelete = 171
	gMemPos = 66704

	gNumMalloc = 94
	gNumFree = 0
	gMemPos2 = 10080
osh_.cc8 empty argv

[osh_.cc status] Expected 0, got 255

stdout:
['1', '2', '3', '', '4', '5']
stderr:
dumb_alloc:
	gNumNew = 1917
	gNumDelete = 139
	gMemPos = 66528

	gNumMalloc = 110
	gNumFree = 0
	gMemPos2 = 10336
osh_.cc9 Word elision with space

[osh_.cc status] Expected 0, got 255

stdout:
[]
stderr:
dumb_alloc:
	gNumNew = 1793
	gNumDelete = 121
	gMemPos = 62560

	gNumMalloc = 65
	gNumFree = 0
	gMemPos2 = 9616
osh_.cc10 Word elision with non-whitespace IFS

[osh_.cc stdout] Expected "['']\n[' ']\n[]\n", got "[]\n['']\n[' ']\n"
[osh_.cc status] Expected 0, got 255

stdout:
[]
['']
[' ']
stderr:
dumb_alloc:
	gNumNew = 2106
	gNumDelete = 174
	gMemPos = 70784

	gNumMalloc = 154
	gNumFree = 0
	gMemPos2 = 11040
osh_.cc11 Leading/trailing word elision with non-whitespace IFS

[osh_.cc status] Expected 0, got 255

stdout:
['', 'a', 'b']
stderr:
dumb_alloc:
	gNumNew = 1859
	gNumDelete = 138
	gMemPos = 64240

	gNumMalloc = 82
	gNumFree = 0
	gMemPos2 = 9888
osh_.cc12 Leading ' ' vs leading ' _ '

[osh_.cc stdout] Expected "['', 'a', 'b']\n['a', 'b']\n", got "['a', 'b']\n['', 'a', 'b']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['a', 'b']
['', 'a', 'b']
stderr:
dumb_alloc:
	gNumNew = 2037
	gNumDelete = 171
	gMemPos = 69200

	gNumMalloc = 147
	gNumFree = 0
	gMemPos2 = 10928
osh_.cc13 Multiple non-whitespace IFS chars.

[osh_.cc status] Expected 0, got 255

stdout:
['a', '', 'b', '', '', 'c', 'd']
stderr:
dumb_alloc:
	gNumNew = 1886
	gNumDelete = 143
	gMemPos = 65264

	gNumMalloc = 98
	gNumFree = 0
	gMemPos2 = 10144
osh_.cc14 IFS with whitespace and non-whitepace.

[osh_.cc status] Expected 0, got 255

stdout:
['a', 'b', '', '', 'c', 'd', 'e']
stderr:
dumb_alloc:
	gNumNew = 1907
	gNumDelete = 145
	gMemPos = 65840

	gNumMalloc = 111
	gNumFree = 0
	gMemPos2 = 10416
osh_.cc15 empty $@ and $* is elided

[osh_.cc status] Expected 0, got 255

stdout:
['1', '2']
stderr:
dumb_alloc:
	gNumNew = 1926
	gNumDelete = 146
	gMemPos = 66336

	gNumMalloc = 96
	gNumFree = 0
	gMemPos2 = 10112
osh_.cc16 unquoted empty arg is elided

[osh_.cc status] Expected 0, got 255

stdout:
['1', '2']
stderr:
dumb_alloc:
	gNumNew = 1838
	gNumDelete = 129
	gMemPos = 63664

	gNumMalloc = 79
	gNumFree = 0
	gMemPos2 = 9840
osh_.cc17 unquoted whitespace arg is elided

[osh_.cc status] Expected 0, got 255

stdout:
['1', '2']
stderr:
dumb_alloc:
	gNumNew = 1844
	gNumDelete = 130
	gMemPos = 63808

	gNumMalloc = 82
	gNumFree = 0
	gMemPos2 = 9888
osh_.cc18 empty literals are not elided

[osh_.cc stdout] Expected "['1', '', '2']\n", got "['1', '2']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['1', '2']
stderr:
dumb_alloc:
	gNumNew = 1857
	gNumDelete = 136
	gMemPos = 64096

	gNumMalloc = 86
	gNumFree = 0
	gMemPos2 = 9920
osh_.cc19 no splitting when IFS is empty

[osh_.cc status] Expected 0, got 255

stdout:
['a b']
stderr:
dumb_alloc:
	gNumNew = 1847
	gNumDelete = 132
	gMemPos = 63856

	gNumMalloc = 78
	gNumFree = 0
	gMemPos2 = 9824
osh_.cc20 default value can yield multiple words

[osh_.cc status] Expected 0, got 255

stdout:
['1', '2 3', '4 5', '6']
stderr:
dumb_alloc:
	gNumNew = 1889
	gNumDelete = 151
	gMemPos = 65488

	gNumMalloc = 115
	gNumFree = 0
	gMemPos2 = 10416
osh_.cc21 default value can yield multiple words with part joining

[osh_.cc status] Expected 0, got 255

stdout:
['12 3', '4 56']
stderr:
dumb_alloc:
	gNumNew = 1857
	gNumDelete = 152
	gMemPos = 64864

	gNumMalloc = 107
	gNumFree = 0
	gMemPos2 = 10288
osh_.cc22 default value with unquoted IFS char

[osh_.cc status] Expected 0, got 255

stdout:
['12_3x', 'x4_56']
stderr:
dumb_alloc:
	gNumNew = 1899
	gNumDelete = 160
	gMemPos = 65936

	gNumMalloc = 116
	gNumFree = 0
	gMemPos2 = 10432
osh_.cc23 IFS empty doesn't do splitting

[osh_.cc stdout] Expected "[' a b\\tc']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc24 IFS unset behaves like $' \t\n'

[osh_.cc stdout] Expected "['a', 'b', 'c']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh25 IFS='\'

[osh stdout] Expected "['a', 'b']\n", got "['a', '', '', '', 'b']\n"

stdout:
['a', '', '', '', 'b']
stderr:
osh_.py25 IFS='\'

[osh_.py stdout] Expected "['a', 'b']\n", got "['a', '', '', '', 'b']\n"

stdout:
['a', '', '', '', 'b']
stderr:
osh_.cc25 IFS='\'

[osh_.cc stdout] Expected "['a', 'b']\n", got "['a', '', '', '', 'b']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['a', '', '', '', 'b']
stderr:
dumb_alloc:
	gNumNew = 1880
	gNumDelete = 145
	gMemPos = 65024

	gNumMalloc = 90
	gNumFree = 0
	gMemPos2 = 10016
osh26 IFS='\ '

[osh stdout] Expected "['a', 'b', '', 'c', 'd']\n", got "['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '', '']\n"

stdout:
['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '', '']
stderr:
osh_.py26 IFS='\ '

[osh_.py stdout] Expected "['a', 'b', '', 'c', 'd']\n", got "['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '', '']\n"

stdout:
['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '', '']
stderr:
osh_.cc26 IFS='\ '

[osh_.cc stdout] Expected "['a', 'b', '', 'c', 'd']\n", got "['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '']
stderr:
dumb_alloc:
	gNumNew = 1935
	gNumDelete = 152
	gMemPos = 67616

	gNumMalloc = 124
	gNumFree = 0
	gMemPos2 = 10592
osh_.cc27 IFS characters are glob metacharacters

[osh_.cc status] Expected 0, got 255

stdout:
['a', 'b', 'c']
['', 'x', 'y', 'z']
['', 'x', 'y', 'z']
stderr:
dumb_alloc:
	gNumNew = 2318
	gNumDelete = 224
	gMemPos = 77488

	gNumMalloc = 231
	gNumFree = 0
	gMemPos2 = 12272
osh_.cc28 Trailing space

[osh_.cc status] Expected 0, got 255

stdout:
['Xec  ho ']
['Xec  ho ']
['Xec  ho ']
stderr:
dumb_alloc:
	gNumNew = 2053
	gNumDelete = 180
	gMemPos = 70096

	gNumMalloc = 197
	gNumFree = 0
	gMemPos2 = 11728
osh_.cc32 IFS and joining arrays

[osh_.cc stdout] Expected "['x', 'y z']\n['x', 'y z']\n['x:y z']\n['x', 'y z']\n", got "['x', 'y z']\n['x:y z']\n['x', 'y z']\n['x', 'y z']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['x', 'y z']
['x:y z']
['x', 'y z']
['x', 'y z']
stderr:
dumb_alloc:
	gNumNew = 2325
	gNumDelete = 228
	gMemPos = 77744

	gNumMalloc = 237
	gNumFree = 0
	gMemPos2 = 12368
osh33 IFS and joining arrays by assignments

[osh stdout] Expected "['x y z']\n['x y z']\n['x y z']\n['x:y z']\n", got "['x y z']\n['x:y z']\n['x:y z']\n['x:y z']\n"

stdout:
['x y z']
['x:y z']
['x:y z']
['x:y z']
stderr:
  s"$*"
  ^
[ stdin ]:10: 'sx:y z' not found
osh_.py33 IFS and joining arrays by assignments

[osh_.py stdout] Expected "['x y z']\n['x y z']\n['x y z']\n['x:y z']\n", got "['x y z']\n['x:y z']\n['x:y z']\n['x:y z']\n"

stdout:
['x y z']
['x:y z']
['x:y z']
['x:y z']
stderr:
  s"$*"
  ^
[ stdin ]:10: 'sx:y z' not found
osh_.cc33 IFS and joining arrays by assignments

[osh_.cc stdout] Expected "['x y z']\n['x y z']\n['x y z']\n['x:y z']\n", got "['x y z']\n['x:y z']\n['x:y z']\n['x:y z']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['x y z']
['x:y z']
['x:y z']
['x:y z']
stderr:
  s"$*"
  ^
[ stdin ]:10: 'sx:y z' not found

dumb_alloc:
	gNumNew = 2511
	gNumDelete = 249
	gMemPos = 82944

	gNumMalloc = 263
	gNumFree = 0
	gMemPos2 = 12784
osh35 IFS='' with $@ and $*

[osh stdout] Expected "['at', 'a', 'b c']\n['star', 'a', 'b c']\n", got "['at', 'ab c']\n['star', 'ab c']\n"

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
osh_.py35 IFS='' with $@ and $*

[osh_.py stdout] Expected "['at', 'a', 'b c']\n['star', 'a', 'b c']\n", got "['at', 'ab c']\n['star', 'ab c']\n"

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
osh_.cc35 IFS='' with $@ and $*

[osh_.cc stdout] Expected "['at', 'a', 'b c']\n['star', 'a', 'b c']\n", got "['star', 'ab c']\n['at', 'ab c']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['star', 'ab c']
['at', 'ab c']
stderr:
dumb_alloc:
	gNumNew = 2193
	gNumDelete = 197
	gMemPos = 73856

	gNumMalloc = 197
	gNumFree = 0
	gMemPos2 = 11728
osh36 IFS='' with $@ and $* and printf

[osh stdout] Expected '[a]\n[b c]\n[a]\n[b c]\n', got '[ab c]\n[ab c]\n'

stdout:
[ab c]
[ab c]
stderr:
osh_.py36 IFS='' with $@ and $* and printf

[osh_.py stdout] Expected '[a]\n[b c]\n[a]\n[b c]\n', got '[ab c]\n[ab c]\n'

stdout:
[ab c]
[ab c]
stderr:
osh_.cc36 IFS='' with $@ and $* and printf

[osh_.cc stdout] Expected '[a]\n[b c]\n[a]\n[b c]\n', got '[ab c]\n[ab c]\n'

stdout:
[ab c]
[ab c]
stderr:
dumb_alloc:
	gNumNew = 2201
	gNumDelete = 197
	gMemPos = 74016

	gNumMalloc = 181
	gNumFree = 0
	gMemPos2 = 11472
osh37 IFS='' with ${a[@]} and ${a[*]}

[osh stdout] Expected "['at', 'a', 'b c']\n['star', 'a', 'b c']\n", got "['at', 'ab c']\n['star', 'ab c']\n"

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
osh_.py37 IFS='' with ${a[@]} and ${a[*]}

[osh_.py stdout] Expected "['at', 'a', 'b c']\n['star', 'a', 'b c']\n", got "['at', 'ab c']\n['star', 'ab c']\n"

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
osh_.cc37 IFS='' with ${a[@]} and ${a[*]}

[osh_.cc stdout] Expected "['at', 'a', 'b c']\n['star', 'a', 'b c']\n", got "['at', 'ab c']\n['star', 'ab c']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
dumb_alloc:
	gNumNew = 2105
	gNumDelete = 182
	gMemPos = 71296

	gNumMalloc = 179
	gNumFree = 0
	gMemPos2 = 11440
osh38 Bug #628 split on : with : in literal word

[osh stdout] Expected "['a', ':b']\n['a', ':']\n---\n['a', 'zb']\n['a', 'z']\n", got "['a', '\\\\', 'b']\n['a', '\\\\']\n---\n['a', '\\\\', 'b']\n['a', '\\\\']\n"

stdout:
['a', '\\', 'b']
['a', '\\']
---
['a', '\\', 'b']
['a', '\\']
stderr:
osh_.py38 Bug #628 split on : with : in literal word

[osh_.py stdout] Expected "['a', ':b']\n['a', ':']\n---\n['a', 'zb']\n['a', 'z']\n", got "['a', '\\\\', 'b']\n['a', '\\\\']\n---\n['a', '\\\\', 'b']\n['a', '\\\\']\n"

stdout:
['a', '\\', 'b']
['a', '\\']
---
['a', '\\', 'b']
['a', '\\']
stderr:
osh_.cc38 Bug #628 split on : with : in literal word

[osh_.cc stdout] Expected "['a', ':b']\n['a', ':']\n---\n['a', 'zb']\n['a', 'z']\n", got "---\n['a', '\\\\', 'b']\n['a', '\\\\']\n['a', '\\\\', 'b']\n['a', '\\\\']\n"
[osh_.cc status] Expected 0, got 255

stdout:
---
['a', '\\', 'b']
['a', '\\']
['a', '\\', 'b']
['a', '\\']
stderr:
dumb_alloc:
	gNumNew = 2484
	gNumDelete = 270
	gMemPos = 81328

	gNumMalloc = 294
	gNumFree = 0
	gMemPos2 = 13280
osh_.cc39 Bug #698, similar crash

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

stdout:
stderr: 
dumb_alloc:
	gNumNew = 1926
	gNumDelete = 139
	gMemPos = 66208

	gNumMalloc = 88
	gNumFree = 0
	gMemPos2 = 9984