Results for word-split.test.sh

statusoshosh_.pyosh_.cc
pass 333329
FAIL 7711
total404040
caseoshosh_.pyosh_.ccdescription
0pass pass pass IFS is scoped
1pass pass pass Tilde sub is not split, but var sub is
2pass pass pass Word splitting
3pass pass pass Word splitting 2
4pass pass pass $*
5pass pass pass "$*"
6pass pass pass $@
7pass pass pass "$@"
8pass pass pass empty argv
9pass pass pass Word elision with space
10pass pass pass Word elision with non-whitespace IFS
11pass pass pass Leading/trailing word elision with non-whitespace IFS
12pass pass pass Leading ' ' vs leading ' _ '
13pass pass pass Multiple non-whitespace IFS chars.
14pass pass pass IFS with whitespace and non-whitepace.
15pass pass pass empty $@ and $* is elided
16pass pass pass unquoted empty arg is elided
17pass pass pass unquoted whitespace arg is elided
18pass pass FAIL empty literals are not elided
details
19pass pass pass no splitting when IFS is empty
20pass pass pass default value can yield multiple words
21pass pass pass default value can yield multiple words with part joining
22pass pass pass default value with unquoted IFS char
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 pass IFS characters are glob metacharacters
28pass pass pass Trailing space
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 pass IFS and joining arrays
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
95 passed, 0 OK, 0 not implemented, 0 BUG, 25 failed, 0 timeouts, 0 cases skipped
7 failed under osh

Details on runs that didn't PASS

osh_.cc18 empty literals are not elided

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

stdout:
['1', '2']
stderr:
dumb_alloc:
	gNumNew = 1837
	gNumDelete = 136
	gMemPos = 63760

	gNumMalloc = 87
	gNumFree = 0
	gMemPos2 = 10560
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:106: 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:106: 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"

stdout:
['a', '', '', '', 'b']
stderr:
dumb_alloc:
	gNumNew = 1863
	gNumDelete = 146
	gMemPos = 64736

	gNumMalloc = 91
	gNumFree = 0
	gMemPos2 = 10656
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"

stdout:
['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '']
stderr:
dumb_alloc:
	gNumNew = 1918
	gNumDelete = 153
	gMemPos = 67328

	gNumMalloc = 125
	gNumFree = 0
	gMemPos2 = 11232
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 ]:7: '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 ]:7: '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"

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

dumb_alloc:
	gNumNew = 2516
	gNumDelete = 250
	gMemPos = 83776

	gNumMalloc = 264
	gNumFree = 0
	gMemPos2 = 13424
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 "['at', 'ab c']\n['star', 'ab c']\n"

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
dumb_alloc:
	gNumNew = 2164
	gNumDelete = 195
	gMemPos = 73248

	gNumMalloc = 198
	gNumFree = 0
	gMemPos2 = 12368
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 = 2156
	gNumDelete = 197
	gMemPos = 72736

	gNumMalloc = 182
	gNumFree = 0
	gMemPos2 = 12112
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"

stdout:
['at', 'ab c']
['star', 'ab c']
stderr:
dumb_alloc:
	gNumNew = 2078
	gNumDelete = 180
	gMemPos = 70720

	gNumMalloc = 180
	gNumFree = 0
	gMemPos2 = 12080
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 "['a', '\\\\', 'b']\n['a', '\\\\']\n['a', '\\\\', 'b']\n['a', '\\\\']\n---\n"

stdout:
['a', '\\', 'b']
['a', '\\']
['a', '\\', 'b']
['a', '\\']
---
stderr:
dumb_alloc:
	gNumNew = 2452
	gNumDelete = 266
	gMemPos = 80752

	gNumMalloc = 295
	gNumFree = 0
	gMemPos2 = 13920
osh_.cc39 Bug #698, similar crash

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

stdout:
stderr: 
dumb_alloc:
	gNumNew = 1887
	gNumDelete = 139
	gMemPos = 65024

	gNumMalloc = 89
	gNumFree = 0
	gMemPos2 = 10624