getting FNM_PATHNAME behaviour from pattern matching
From:
Sitaram Chamarty
Subject:
getting FNM_PATHNAME behaviour from pattern matching
Date:
Sun, 8 Feb 2009 03:27:41 +0000 (UTC)
User-agent:
slrn/0.9.9 (Linux)
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 return 1, not 0.
What am I missing/doing wrong?