Fix test whether sed is GNU sed supporting --posix.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Jan 2007 20:07:08 +0000 (20:07 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jan 2007 20:07:08 +0000 (20:07 +0000)
ChangeLog
gnulib-tool

index 108f289..73b8a78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-21  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
+
 2007-01-20  Jim Meyering  <jim@meyering.net>
 
        * lib/userspec.c (parse_with_separator): If a user or group string
index 7fe55f0..547e29a 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-01-17 23:46:34 $'
+cvsdatestamp='$Date: 2007-01-21 20:07:09 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -71,7 +71,7 @@ fi
 # However, do this only for gnulib-tool itself, not for the code that
 # gnulib-tool generates, since we don't want "sed --posix" to leak
 # into makefiles.
-if (alias) > /dev/null 2>&1 && echo | sed --posix d >/dev/null 2>&1; then
+if (alias) > /dev/null 2>&1 && echo | sed --posix -e d >/dev/null 2>&1; then
   alias sed='sed --posix'
 fi