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