mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-09 19:50:32 +02:00
parse extended glob patterns in command substitutions in compatibility mode, even if extglob is not set
This commit is contained in:
+7
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user