]> sjero.net Git - wget/commitdiff
[svn] Fix portable echo handling under Bash.
authorhniksic <devnull@localhost>
Tue, 16 Sep 2003 14:35:20 +0000 (07:35 -0700)
committerhniksic <devnull@localhost>
Tue, 16 Sep 2003 14:35:20 +0000 (07:35 -0700)
ChangeLog
util/dist-wget

index 973c2bffd811e870e9b8e81e925af79714045078..c7e315e5a2016480022afae82e1cbf2009d89a50 100644 (file)
--- 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
index d8546e05e0f1f8b6562f9ab9a62688554190c1ce..b4fe96e5368783dd1213de19bed130064c0ab90e 100755 (executable)
@@ -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