[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash core dumps doing glob pattern on long string

From: Chet Ramey
Subject: Re: bash core dumps doing glob pattern on long string
Date: Tue, 11 Oct 2022 10:34:42 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

On 10/11/22 1:26 AM, Phi Debian wrote:

On the contrary I see nor reference saying the 'pattern matching for pathname expansion can also be used by extension to any strings, but now I understand it is.

The conditional command is explicit about it:

"When  the  == and != operators are used, the string to the right
 of the operator is considered a pattern and matched according to
 the rules described below under Pattern Matching, as if the ext-
 glob shell option were enabled."

The `case' command; the pattern substitution, pattern removal, and
case modification word expansions; and variables like EXECIGNORE and
GLOBIGNORE also apply pattern matching to arbitrary strings.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]