summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-13 07:30:27 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-13 07:30:27 +0000
commit3737ff12bcf09b8724905483b57e063125e0f43c (patch)
treef21c08bfcd0c032ebdd9c9e0f80f8ce5567f7e34 /posix
parent07d641eba62594c93ea37d12b1d18fc3c5b64b6d (diff)
downloadglibc-3737ff12bcf09b8724905483b57e063125e0f43c.tar.gz
glibc-3737ff12bcf09b8724905483b57e063125e0f43c.tar.xz
glibc-3737ff12bcf09b8724905483b57e063125e0f43c.zip
Update.
2000-04-13  Ulrich Drepper  <drepper@redhat.com>

	* posix/globtest.sh: Work around inconsistency with expanding ~/
	in shell (PR libc/1690).  Reported by patsmith@pobox.com.
Diffstat (limited to 'posix')
-rwxr-xr-xposix/globtest.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/posix/globtest.sh b/posix/globtest.sh
index 6c088301b0..40d95d5dcb 100755
--- a/posix/globtest.sh
+++ b/posix/globtest.sh
@@ -235,7 +235,12 @@ echo ~ | cmp - $testout || result=1
 ${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
 ${common_objpfx}posix/globtest -q -t "$testdir" "~/" |
 sort > $testout
-echo ~/ | 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
+endif
 
 # Test tilde expansion with username
 ${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \