Update.
commitc06cc21c043b02d0d7c078730695be370c66571c
authorUlrich Drepper <drepper@redhat.com>
Sat, 12 Sep 1998 08:42:05 +0000 (12 08:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 12 Sep 1998 08:42:05 +0000 (12 08:42 +0000)
tree1f290126701a3134dba291910ec5a26deff48952
parent514d9bca72ee648d89ccce020124d11ac0a09ccb
Update.

1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>

* posix/wordexp-test.c: Fix wrong tests.  Add new tests.

* posix/wordexp.c (wordexp): Perform word-splitting instead of
field-splitting here.
(wordexp): If out of memory mid-word, free the word (but still
leave pwordexp alone for caller to see).
(parse_param): Allow for zero-length fields (smarter checking of
memory allocation failure).
(w_addword): Convert NULL words to "".
(wordexp): Convert left-over IFS characters to blanks (like bash).
ChangeLog
posix/wordexp-test.c
posix/wordexp.c