On 10/13/11 15:36, Daniel Richard G. wrote:
> It's a fairly small and straightforward patch

Hmm, but isn't it a bit iffy?
With the patch, a string with '\' is passed to 'echo',
and that's not portable.  Maybe it works on mingw, maybe
not (I don't use mingw).

How about the following patch instead?  It's the same number
of bytes as the original, so arguably it addresses the
complexity issue.  To be honest, though, I don't want to
be dragged down the slippery slope of supporting museum
pieces, as that's not Gnulib's job.

diff --git a/m4/absolute-header.m4 b/m4/absolute-header.m4
index b7276a3..031bc21 100644
--- a/m4/absolute-header.m4
+++ b/m4/absolute-header.m4
@@ -81,12 +81,12 @@ changequote(,)
       gl_dirsep_regex='/'
       ;;
   esac
-  gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'$1|{
+  gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'$1|!d
       s|.*"\(.*'"${gl_dirsep_regex}"'$1\)".*|\1|
       s|^/[^/]|//&|
       p
       q
-    }'
+    '
 changequote([,])
   dnl eval is necessary to expand gl_absname_cpp.
   dnl Ultrix and Pyramid sh refuse to redirect output of eval,

Reply via email to