pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Using the := operator has subtl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/701ca18cd08b
branches:  trunk
changeset: 513561:701ca18cd08b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed May 31 08:59:13 2006 +0000

description:
Using the := operator has subtle effects on the number of '$' characters
in strings. So don't use them.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 52082c7bdf91 -r 701ca18cd08b pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed May 31 08:46:00 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed May 31 08:59:13 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.594 2006/05/31 08:46:00 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.595 2006/05/31 08:59:13 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -2944,7 +2944,11 @@
                                "incrementally. Therefore it is generally unsafe to rely on their value",
                                "until it is clear that it will never change again. This point is",
                                "reached when the whole package Makefile is loaded and execution of the",
-                               "shell commands starts.");
+                               "shell commands starts.",
+                               "",
+                               "Additionally, each \$\$ is replaced with a single \$, so variables",
+                               "that have references to shell variables or regular expressions are",
+                               "modified in a subtle way.");
                }
        }
 



Home | Main Index | Thread Index | Old Index