parse extended glob patterns in command substitutions in compatibility mode, even if extglob is not set

This commit is contained in:
Chet Ramey
2022-08-02 11:16:48 -04:00
parent e9e3e4fea5
commit 9c317a6ae1
74 changed files with 22157 additions and 19321 deletions
+7 -1
View File
@@ -2154,6 +2154,12 @@ EEXXPPAANNSSIIOONN
!!((_p_a_t_t_e_r_n_-_l_i_s_t))
Matches anything except one of the given patterns
Theeexxttgglloobb option changes the behavior of the parser, since the paren-
theses are normally treated as operators with syntactic meaning. To
ensure that extended matching patterns are parsed correctly, make sure
that eexxttgglloobb is enabled before parsing constructs containing the pat-
terns, including shell functions and command substitutions.
When matching filenames, the ddoottgglloobb shell option determines the set of
filenames that are tested: when ddoottgglloobb is enabled, the set of file-
names includes all files beginning with ``.'', but ``.'' and ``..''
@@ -6650,4 +6656,4 @@ BBUUGGSS
GNU Bash 5.2 2022 June 16 BASH(1)
GNU Bash 5.2 2022 July 29 BASH(1)