From dd719768790d8b93db856ede63cc21b5203f43fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Tue, 2 Nov 2021 12:03:59 +0100 Subject: [PATCH 1/2] readme: update minimum required version of bash 0b2bbf641f5a361c684dcaf61a1c36eaf364bcae introduced [[ -v ]] checks, which is a bash 4.2 feature: https://github.com/bminor/bash/blob/master/CHANGES#L3642 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d5b96c..71758ca 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Inspired, by the python argparse module, bash-argsparse purpose is to replace the option-parsing and usage-describing functions commonly rewritten in all scripts. -This library is implemented for GNU bash version >= 4.1. Prior +This library is implemented for GNU bash version >= 4.2. Prior versions of bash will fail at interpreting that code. From 3c77fa4bf942e5f0a374f4b3405aca8dcefbdeb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Tue, 2 Nov 2021 12:04:24 +0100 Subject: [PATCH 2/2] bash-argsparse.spec: update minimum required version of bash 0b2bbf641f5a361c684dcaf61a1c36eaf364bcae introduced [[ -v ]] checks, which is a bash 4.2 feature: https://github.com/bminor/bash/blob/master/CHANGES#L3642 --- bash-argsparse.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bash-argsparse.spec b/bash-argsparse.spec index c26329a..0a46d94 100644 --- a/bash-argsparse.spec +++ b/bash-argsparse.spec @@ -9,7 +9,7 @@ BuildArch: noarch # Binaries are required for unittest to perform cleanly. BuildRequires: doxygen glibc-common util-linux /usr/bin/host -Requires: bash >= 4.1 +Requires: bash >= 4.2 Requires: util-linux glibc-common /usr/bin/host %description @@ -91,4 +91,3 @@ for file in argsparse argsparse-completion; do * Thu Mar 14 2013 Dams - 1.4-0 - Initial build. -