bug-bash
[Top][All Lists]
Advanced

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

Re: docs incorrectly mention pattern matching works like pathname expans


From: Chet Ramey
Subject: Re: docs incorrectly mention pattern matching works like pathname expansion
Date: Thu, 15 Mar 2018 15:44:36 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 3/15/18 3:26 PM, Stormy wrote:

> like I said, I've already implemented, roughly 40 lines in bash, and it
> seems to work, but if there is some builtin option 'shopt' or similar that
> can turn the right flags you mentioned, I'm all for testing it :)

There isn't. Pathname expansion is done in the specific circumstances Posix
says it should be (and historical shells perform). The other contexts use
straight pattern matching.


-- 
``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]