Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [patch] Globbing Pattern Anchoring Fix And Directory Match Extension (was: FSVS and ignore patterns)

fsvs
Discussion topic

Back to topic list

[patch] Globbing Pattern Anchoring Fix And Directory Match Extension (was: FSVS and ignore patterns)

Author Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de>
Full name Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de>
Date 2007-04-03 13:39:18 PDT
Message Hi!

Ok, I splittet the patch previously called dir_ignore into two tiny chunks
which represent the two different concepts merged within the old patch.

The first one fixes a plain misbehaviour of the globbing pattern and makes
the implementation's behaviour match its documentation. Without this
patch, the example pattern "./sys" from the docs would also match files
and directories called "./system", "./sysiphus", and so on.

The second chunk extends the directory matching behaviour such
that "./abc/**" is equivalent to "./abc/", ie it ignores the directories'
contents but not the directory itself. I'm not sure if this behaviour is
desirable, but I consider it to be convenient... ;)

Greetings,

  Gunter

--
+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+
Although the scythe isn't pre-eminent among the weapons of war, anyone
who has been on the wrong end of, say, a peasants' revolt will know that
in skilled hands it is fearsome. -- (Terry Pratchett, Mort)
+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+
+ PGP-verschl├╝sselte Mails bevorzugt! +
+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+-+-+-+-​+-+-+-+-+-+-+
Attachments

« Previous message in topic | 4 of 8 | Next message in topic »

Messages

Show all messages in topic

FSVS and ignore patterns pmarek P.Marek 2007-04-03 01:18:51 PDT
     Re: FSVS and ignore patterns pmarek P.Marek 2007-04-03 01:24:55 PDT
     Re: FSVS and ignore patterns Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2007-04-03 12:09:06 PDT
         [patch] Globbing Pattern Anchoring Fix And Directory Match Extension (was: FSVS and ignore patterns) Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2007-04-03 13:39:18 PDT
         [patch] Character Classes And Escape Characters In Globbing Patterns (was: FSVS and ignore patterns) Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2007-04-03 13:46:56 PDT
         Re: FSVS and ignore patterns Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2007-04-03 13:49:22 PDT
             Re: FSVS and ignore patterns Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2007-04-15 10:54:51 PDT
         Re: FSVS and ignore patterns Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2007-04-03 13:53:24 PDT
Messages per page: