]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use tighter regexps when performing name substitution.
authorJim Meyering <meyering@redhat.com>
Mon, 5 Nov 2007 10:05:55 +0000 (11:05 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 5 Nov 2007 10:14:05 +0000 (11:14 +0100)
* man/Makefile.am (mapped_name): Add ^ and $$ anchors.

Signed-off-by: Jim Meyering <meyering@redhat.com>
ChangeLog
man/Makefile.am

index cd7a9f478e3e34abffaf32932194e15e152c379c..61ee8c3b9032cdb3bfd4cc2d7087a626926cf584 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-11-05  Jim Meyering  <meyering@redhat.com>
 
+       Use tighter regexps when performing name substitution.
+       * man/Makefile.am (mapped_name): Add ^ and $$ anchors.
+
        Don't use GNU-sed-specific \< \> operators.
        * configure.ac (MAN): Transform ginstall.1 to install.1 using
        a loop, rather than sed with \<...\>.
index a7b96d16e5b35d7500aed608ec6dec9f7ac7455f..8d1f7f7c94f331945bf568c830ca4c2c3bcb022f 100644 (file)
@@ -136,7 +136,7 @@ SUFFIXES = .x .1
 # `install' when creating install.1.
 # Similarly, ensure that it uses the ../src/[ binary to create test.1.
 t = $*.td
-mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'`
+mapped_name = `echo $*|sed 's/^install$$/ginstall/; s/^test$$/[/'`
 
 # Note the use of $t/$*, rather than just `$*' as in other packages.
 # That is necessary to avoid failures for programs that are also shell built-in