Field splitting is performed on the whole word
emersion opened this issue · comments
It should only be performed on results of expansions and substitutions:
the shell shall scan the results of expansions and substitutions that did not occur in double-quotes for field splitting and multiple fields can result.
Test case:
$ printf '%s-%s\n' a\ b
a-b