Results for word-split.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass IFS is scoped
1pass pass pass pass pass Tilde sub is not split, but var sub is
2pass pass pass pass pass Word splitting
3pass pass pass pass pass Word splitting 2
4pass pass pass pass pass $*
5pass pass pass pass pass "$*"
6pass pass pass pass pass $@
7pass pass pass pass pass "$@"
8pass pass pass pass pass empty argv
9pass pass pass pass pass Word elision with space
10pass pass pass pass pass Word elision with non-whitespace IFS
11pass pass pass pass pass Leading/trailing word elision with non-whitespace IFS
12pass pass pass pass pass Leading ' ' vs leading ' _ '
13pass pass pass pass pass Multiple non-whitespace IFS chars.
14pass pass pass pass pass IFS with whitespace and non-whitepace.
15pass pass pass pass pass empty $@ and $* is elided
16pass pass pass pass pass unquoted empty arg is elided
17pass pass pass pass pass unquoted whitespace arg is elided
18pass pass pass pass pass empty literals are not elided
19pass pass pass pass pass no splitting when IFS is empty
20pass pass pass pass pass default value can yield multiple words
21pass pass pass pass pass default value can yield multiple words with part joining
22pass pass pass pass pass default value with unquoted IFS char
23N-I pass pass pass pass IFS empty doesn't do splitting
details
24N-I pass pass pass pass IFS unset behaves like $' \t\n'
details
25pass pass pass FAIL FAIL IFS='\'
detailsdetails
26pass pass pass FAIL FAIL IFS='\ '
detailsdetails
27pass pass pass pass pass IFS characters are glob metacharacters
28pass pass pass pass pass Trailing space
29pass pass pass pass pass Empty IFS (regression for bug)
30pass pass pass pass pass Unset IFS (regression for bug)
31pass pass pass pass pass IFS=o (regression for bug)
32pass pass pass pass pass IFS and joining arrays
33ok pass pass FAIL FAIL IFS and joining arrays by assignments
detailsdetailsdetails
34pass pass pass pass pass TODO

166 passed, 1 ok, 2 known unimplemented, 0 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

dash23 IFS empty doesn't do splitting

stdout:
['-e  a b\tc']
stderr:
dash24 IFS unset behaves like $' \t\n'

stdout:
['-e', 'a', 'b', 'c']
stderr:
osh25 IFS='\'

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

stdout:
['a', '', '', '', 'b']
stderr:
osh_ALT25 IFS='\'

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

stdout:
['a', '', '', '', 'b']
stderr:
osh26 IFS='\ '

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

stdout:
['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '', '']
stderr:
osh_ALT26 IFS='\ '

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

stdout:
['a', '', '', '', 'b', '', '', '', '', '', '', '', 'c', 'd', '', '', '']
stderr:
dash33 IFS and joining arrays by assignments

stdout:
['x:y z']
['x:y z']
['x:y z']
['x:y z']
stderr:
_tmp/spec-bin/dash: 7: sx:y z: not found
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: Can't execute 'sx:y z': No such file or directory
osh_ALT33 IFS and joining arrays by assignments

[osh_ALT 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: Can't execute 'sx:y z': No such file or directory