]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 29 Nov 2001 21:57:56 +0000 (21:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 29 Nov 2001 21:57:56 +0000 (21:57 +0000)
2001-11-29  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
don't match, fix {{a,b},c} globbing, clean up.
Patch by Flavio Veloso <flaviovs@magnux.com>.
* posix/globtest.sh: Add new tests.

ChangeLog
posix/globtest.sh

index 664f3c6ac3d8cd777a6d83f405e727880088cbeb..001612bacd2b2ea434ac89d0f80ca497d6a79d6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-11-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
+       don't match, fix {{a,b},c} globbing, clean up.
+       Patch by Flavio Veloso <flaviovs@magnux.com>.
+       * posix/globtest.sh: Add new tests.
+
 2001-11-29  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
index 678a6d9b1ac1492da267f8a1c315075c0b213d73..b85a8e529b33220dadd8f06520a104667e830248 100755 (executable)
@@ -146,6 +146,32 @@ if test $failed -ne 0; then
   result=1
 fi
 
+failed=0
+${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
+${common_objpfx}posix/globtest -b "$testdir" "{file{1,2},-file3}" |
+sort > $testout
+cat <<"EOF" | cmp - $testout >> $logfile || failed=1
+`-file3'
+`file1'
+`file2'
+EOF
+if test $failed -ne 0; then
+  echo "Braces test 2 failed" >> $logfile
+  result=1
+fi
+
+failed=0
+${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
+${common_objpfx}posix/globtest -b "$testdir" "{" |
+sort > $testout
+cat <<"EOF" | cmp - $testout >> $logfile || failed=1
+GLOB_NOMATCH
+EOF
+if test $failed -ne 0; then
+  echo "Braces test 3 failed" >> $logfile
+  result=1
+fi
+
 # Test NOCHECK
 failed=0
 ${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \