pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/check-portability/files pkgtools/check-portab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f2016941394e
branches:  trunk
changeset: 412862:f2016941394e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Mar 12 19:26:17 2020 +0000

description:
pkgtools/check-portability: make explanation for [[ more precise

diffstat:

 pkgtools/check-portability/files/check-portability.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r a0ec680570ba -r f2016941394e pkgtools/check-portability/files/check-portability.c
--- a/pkgtools/check-portability/files/check-portability.c      Thu Mar 12 19:19:52 2020 +0000
+++ b/pkgtools/check-portability/files/check-portability.c      Thu Mar 12 19:26:17 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.5 2020/03/12 08:55:07 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.6 2020/03/12 19:26:17 rillig Exp $ */
 
 /*
  Copyright (c) 2020 Roland Illig
@@ -320,9 +320,9 @@
        nerrors++;
        explain(
            W_double_bracket,
-           "The command [[ is not available on all platforms.",
-           "Since it is typically used inside an if statement,",
-           "the missing command is interpreted as a \"no\".",
+           "The keyword [[ is only available in bash, not in other shells.",
+           "Since it is typically used inside an if statement, if that",
+           "command is missing, it is interpreted as a \"no\".",
            "",
            "An error message of the form \"[[: command not found\"",
            "is logged, but that is easy to overlook in the large",



Home | Main Index | Thread Index | Old Index