Skip to content

Commit 0008626

Browse files
author
Damien Nadé
committed
disabling posix mode
1 parent 35047ee commit 0008626

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

argsparse.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
## This library is implemented for bash version 4. Prior versions of
4040
## bash will fail at interpreting that code.
4141
## @note
42-
## The extglob shell option will be enabled when loading the
43-
## library. Disabling it afterwards will make the library execution
44-
## fail.
42+
## The extglob shell option will be enabled and posix mode will be
43+
## disabled when loading the library. Changing those settings
44+
## afterwards will make the library execution fail.
4545
#
4646
## @par Usage
4747
## Use the argsparse_use_option() function to declare your options with
@@ -282,6 +282,7 @@ declare -r ARGSPARSE_VERSION=1.6.2
282282

283283
# Enable required features
284284
shopt -s extglob
285+
set +o posix
285286

286287
# This is an associative array. It should contains records of the form
287288
# "something" -> "Some usage description string".

0 commit comments

Comments
 (0)