Re: Inconsistent handling of patterns with backslah (`\`) escaping
Chet Ramey <[email protected]> Mon, 1 Jun 2026 11:13:33 -0400
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Organization | ITS, Case Western Reserve University |
| Message-ID | <[email protected]> |
On 6/1/26 6:54 AM, Andrei Borzenkov wrote: > On Sun, May 31, 2026 at 5:32 PM Andreas Schwab <[email protected]> wrote: >> Because '\*' is not a glob, so filename expansion is not performed. >> > > Actually it is. Pathname expansion is performed on the result of the > parameter expansion and pathname expansion interprets the current > content of the word in question as pattern: It's not, since the `*' in the word is not "treated as special" with respect to pattern matching. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCah2hnQUDAAAAAAAKCRC7WGnwZOp0q/iH AJ9WFavz6IF2Fk3vglu/mI8POAuQ8ACfT5BBC3zal4CDSp/17j4pr0jCbjw= =QGqU -----END PGP SIGNATURE-----