Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16397

Re: Could we have GLOBIGNORE ignore . and .. in subdirectories, too?

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Could we have GLOBIGNORE ignore . and .. in subdirectories, too?
Date 2020-06-17 09:50 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.2050.1592401834.2541.bug-bash@gnu.org> (permalink)
References <1ced5397-877f-a3b9-4ff1-8c08d0065c7a@iki.fi> <c74be0aa-4b95-73c0-b8f4-e0eded211523@case.edu>

Show all headers | View raw


On 5/28/20 12:02 PM, Ilkka Virta wrote:

> 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?


It seems reasonable to have GLOBIGNORE discard a pathname whose terminal
component is `.' or `..'. It's consistent with the idea that GLOBIGNORE
ignores a filename component of `.' or `..'.

Chet

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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Could we have GLOBIGNORE ignore . and .. in subdirectories, too? Chet Ramey <chet.ramey@case.edu> - 2020-06-17 09:50 -0400

csiph-web