From: Ulrich Drepper Date: Thu, 13 Apr 2000 07:34:00 +0000 (+0000) Subject: Work around inconsistency with expanding ~/ in shell. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed49ddd42509043e2d30b4f65aeaab7feee39ec7;p=thirdparty%2Fglibc.git Work around inconsistency with expanding ~/ in shell. --- diff --git a/posix/globtest.sh b/posix/globtest.sh index 4a009cc92b8..b8509fcaaac 100755 --- a/posix/globtest.sh +++ b/posix/globtest.sh @@ -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} \