public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Why change posix/globtest.sh?
@ 2000-04-18 17:27 H . J . Lu
  2000-04-18 19:38 ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: H . J . Lu @ 2000-04-18 17:27 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: GNU C Library

I cannot see how this patch in glibc 2.1:

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.

will work. Here is the change:

 ${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

UIlrich, I believe you applied the patch at the wrong place. Could
you please fix it?

Thanks.


H.J.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-04-26 21:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-18 17:27 Why change posix/globtest.sh? H . J . Lu
2000-04-18 19:38 ` Ulrich Drepper
2000-04-18 20:18   ` H . J . Lu
2000-04-26 20:44     ` Andreas Jaeger
2000-04-26 20:52       ` H . J . Lu
2000-04-26 21:02         ` Andreas Jaeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).