From df117e2a10b16f0a8768560e13d31b4058253456 Mon Sep 17 00:00:00 2001
From: hniksic <devnull@localhost>
Date: Tue, 16 Sep 2003 07:35:20 -0700
Subject: [PATCH] [svn] Fix portable echo handling under Bash.

---
 ChangeLog      | 4 ++++
 util/dist-wget | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 973c2bff..c7e315e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
+
+	* util/dist-wget: Fixed portable echo checking under Bash.
+
 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
 
 	* configure.in: Change AC_CHECK_FUNC(getaddrinfo...) to
diff --git a/util/dist-wget b/util/dist-wget
index d8546e05..b4fe96e5 100755
--- a/util/dist-wget
+++ b/util/dist-wget
@@ -69,7 +69,7 @@ done
 # Resolve echo -n incompatibilities.
 e_n=-n
 e_c=
-if test "`(echo foo; echo -n bar) | tr '[\012]' x`" != fooxbar; then
+if test x"`(echo -n foo; echo bar)`" != xfoobar; then
   e_n=
   e_c='\c'
 fi