Let's say I want to glob just the files with names starting with dots,
but not the ubiquitous dot and dot-dot entries, which are seldom a
useful result of a glob.
That can be done with something like ..?* .[!.]* or .!(|.) with
extglob. Both are still a bit annoying to type, and it would be nice to
just have .* do this directly. GLOBIGNORE seems like it could help,
but it appears the automatic hiding of . and .. only works with globs
without a path element: .* doesn't generate them, but ./.* does.
I could add GLOBIGNORE=.:..:*/.:*/.. to catch them also in
subdirectories, but then of course that doesn't work for
sub-sub-directories, etc.
Could it be possible to extend GLOBIGNORE or some other option to have
globs like foo/.* not generate . and .. as the final part of the
path regardless of the level they are in?
When given explicitly, without a glob in the final part of the path,
they should probably still be allowed, even if the word was otherwise a
glob. (e.g. if something like foo/*/. happened to be useful in some case.)
--
Ilkka Virta / itvi...@iki.fi