From ed49ddd42509043e2d30b4f65aeaab7feee39ec7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 13 Apr 2000 07:34:00 +0000 Subject: [PATCH] Work around inconsistency with expanding ~/ in shell. --- posix/globtest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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} \ -- 2.47.2