aboutsummaryrefslogtreecommitdiff
path: root/posix/wordexp-tst.sh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-14 09:27:24 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-14 09:27:24 +0000
commit76fbcfdd66556dfe8e813cda50ac28071d0da573 (patch)
tree24f1c4235a09ebbc502bd0d281b1475580c085aa /posix/wordexp-tst.sh
parent14c44e2ec42a3c973e268add83a11e3e5fb0b80c (diff)
downloadglibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.tar
glibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.tar.gz
glibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.tar.bz2
glibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.zip
Update.
1998-03-14 00:52 Tim Waugh <tim@cyberelk.demon.co.uk> * posix/wordexp.c (parse_param): Perform field-splitting after expanding positional parameter. * posix/wordexp-tst.sh: Test that field-splitting is performed after expanding positional parameter. * posix/wordexp.c (parse_param): Fixed memory leak in field-splitting after parameter expansion. 1998-03-14 Ulrich Drepper <drepper@cygnus.com> * locale/programs/linereader.c (lr_token): Return EOF token at EOF. (get_toplvl_escape): Correctly terminate loop at EOF. Patch by Cristian Gafton <gafton@redhat.com>.
Diffstat (limited to 'posix/wordexp-tst.sh')
-rwxr-xr-xposix/wordexp-tst.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/posix/wordexp-tst.sh b/posix/wordexp-tst.sh
index e341e6435d..a5445f1ee6 100755
--- a/posix/wordexp-tst.sh
+++ b/posix/wordexp-tst.sh
@@ -61,11 +61,13 @@ we_wordv[0] = "5"
EOF
${elf_objpfx}${rtld_installed_name} --library-path ${common_objpfx} \
-${common_objpfx}posix/wordexp-test '$2 ${3}' 2nd 3rd > ${testout}6
-cat <<"EOF" | cmp - ${testout}6 || failed=1
+${common_objpfx}posix/wordexp-test '$2 ${3} $4' 2nd 3rd "4 th" > ${testout}7
+cat <<"EOF" | cmp - ${testout}7 || failed=1
wordexp returned 0
we_wordv[0] = "2nd"
we_wordv[1] = "3rd"
+we_wordv[2] = "4"
+we_wordv[3] = "th"
EOF
exit $failed