From 3737ff12bcf09b8724905483b57e063125e0f43c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 13 Apr 2000 07:30:27 +0000 Subject: Update. 2000-04-13 Ulrich Drepper * posix/globtest.sh: Work around inconsistency with expanding ~/ in shell (PR libc/1690). Reported by patsmith@pobox.com. --- posix/globtest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'posix') diff --git a/posix/globtest.sh b/posix/globtest.sh index 6c08830..40d95d5 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} \ -- cgit v1.1