summaryrefslogtreecommitdiff
path: root/pkgtools/check-portability
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-03-12 19:26:17 +0000
committerrillig <rillig@pkgsrc.org>2020-03-12 19:26:17 +0000
commitb4673e10b083a15abbef8fd977b3b3c09fe44c1d (patch)
tree2bb44dcd4da9000f68592bc6fbe53668278dbe4c /pkgtools/check-portability
parent22afa72540cb999450007a3ad1e39331f9a363bc (diff)
downloadpkgsrc-b4673e10b083a15abbef8fd977b3b3c09fe44c1d.tar.gz
pkgtools/check-portability: make explanation for [[ more precise
Diffstat (limited to 'pkgtools/check-portability')
-rw-r--r--pkgtools/check-portability/files/check-portability.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/check-portability/files/check-portability.c b/pkgtools/check-portability/files/check-portability.c
index 5f39211c099..e37d5746009 100644
--- a/pkgtools/check-portability/files/check-portability.c
+++ b/pkgtools/check-portability/files/check-portability.c
@@ -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 @@ checkline_sh_double_brackets(cstr filename, size_t lineno, cstr line)
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",