Re: getting FNM_PATHNAME behaviour from pattern matching

2009-02-09 Thread Sitaram Chamarty
On Mon, Feb 9, 2009 at 10:08 PM, Chet Ramey wrote: >> I'd like >> [[ abc/dd/def.html == abc/*.html ]]; echo $? >> >> to return 1, not 0. >> >> What am I missing/doing wrong? > > You're not doing anything wrong. There's no mechanism to force > FNM_PATHNAME-style matching using the [[ command.

Re: getting FNM_PATHNAME behaviour from pattern matching

2009-02-09 Thread Chet Ramey
Sitaram Chamarty wrote: > Hello, > > I'm trying to match a patterm that requires the behaviour of > FNM_PATHNAME (from fnmatch(3)). Unlike, say, FNM_PERIOD, > which is emulated by unsetting 'dotglob', there does not > seem to be an equivalent to emulate FNM_PATHNAME. > > I'd like > [[ abc/dd

getting FNM_PATHNAME behaviour from pattern matching

2009-02-07 Thread Sitaram Chamarty
Hello, I'm trying to match a patterm that requires the behaviour of FNM_PATHNAME (from fnmatch(3)). Unlike, say, FNM_PERIOD, which is emulated by unsetting 'dotglob', there does not seem to be an equivalent to emulate FNM_PATHNAME. I'd like [[ abc/dd/def.html == abc/*.html ]]; echo $? to re