]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Work around inconsistency with expanding ~/ in shell.
authorUlrich Drepper <drepper@redhat.com>
Thu, 13 Apr 2000 07:34:00 +0000 (07:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 13 Apr 2000 07:34:00 +0000 (07:34 +0000)
posix/globtest.sh

index 4a009cc92b8d948563d7f0915da05dd9f281ed76..b8509fcaaacf1e09330adc9dfb3f621e398d0ffc 100755 (executable)
@@ -217,7 +217,12 @@ echo ~/ | cmp - $testout || result=1
 ${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
 ${common_objpfx}posix/globtest -q -t "$testdir" "~"$USER |
 sort > $testout
-eval echo ~$USER | cmp - $testout || result=1
+# Some shell incorrectly(?) convert ~/ into // if ~ expands to /.
+if test ~/ = //; then
+    echo / | cmp - $testout || result=1
+else
+    echo ~/ | cmp - $testout || result=1
+fi
 
 # Tilde expansion shouldn't match a file
 ${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \