sh: Fix unquoted $@/$* if IFS=''.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 19:39:23 +0000 (12:39 -0700)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 20:49:14 +0000 (13:49 -0700)
commit5b14c76dd79484f6131bc857929bd01f68ca8736
tree065005ff24de05a676513e391cdfe9c759e5d3b6
parent72cbf40102386293122f5cbf79eb8ef44b4098e0
sh: Fix unquoted $@/$* if IFS=''.

If IFS is null, unquoted $@/$* should still expand to separate words.
This differs from quoted $@ (which does not depend on IFS) in that
pathname generation is performed and empty words are removed.

Obtained-from:   FreeBSD 222361
bin/sh/expand.c
tools/regression/bin/sh/expansion/ifs4.0 [new file with mode: 0644]