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 c...@case.edu http://tiswww.cwru.edu/~chet/