ok, thanks for the confirmation. now u see what I meant before.. when saying bash does not have a builtin way to call fnmatch (I meant: for path name matching), clearly bash calls fnmatch, that is obvious, but there is no way to make it do pathname matching internally. (cd, ls, will surely do it, external to bash though)..
anyways, thanks for all the help.. On Thursday, March 15, 2018, 9:44:38 PM GMT+2, Chet Ramey <chet.ra...@case.edu> wrote: 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 c...@case.edu http://tiswww.cwru.edu/~chet/