diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/checkbashisms/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/checkbashisms/files')
-rw-r--r-- | dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch b/dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch new file mode 100644 index 000000000000..662ccdfd2bea --- /dev/null +++ b/dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch @@ -0,0 +1,30 @@ +https://bugs.debian.org/733511 + +From 50dac50bdfa7ab482bf2277cc1a620a62629c80c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Tue, 10 Nov 2015 19:39:19 -0500 +Subject: [PATCH] checkbashisms: allow `command` to use -v/-V + +POSIX permits the -v/-V options: +http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html +command [-p][-v|-V] command_name +--- + scripts/checkbashisms.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl +index 045328c..fe64a6b 100755 +--- a/scripts/checkbashisms.pl ++++ b/scripts/checkbashisms.pl +@@ -644,7 +644,7 @@ sub init_hashes { + qr';;?&' => q<;;& and ;& special case operators>, + $LEADIN . qr'jobs\s' => q<jobs>, + # $LEADIN . qr'jobs\s+-[^lp]\s' => q<'jobs' with option other than -l or -p>, +- $LEADIN . qr'command\s+-[^p]\s' => q<'command' with option other than -p>, ++ $LEADIN . qr'command\s+-[^pvV]\s' => q<'command' with option other than -p/-v/-V>, + $LEADIN . qr'setvar\s' => q<setvar 'foo' 'bar' should be eval 'foo="'"$bar"'"'>, + $LEADIN . qr'trap\s+["\']?.*["\']?\s+.*(?:ERR|DEBUG|RETURN)' => q<trap with ERR|DEBUG|RETURN>, + $LEADIN . qr'(?:exit|return)\s+-\d' => q<exit|return with negative status code>, +-- +2.6.2 + |