[pmwiki-users] '!' in pagelists [Re: Indexing categories and links (suspended)]
rogutes at googlemail.com
rogutes at googlemail.com
Sun Mar 7 08:57:11 CST 2010
Petko Yotov (2010-03-07 13:18):
> On Sunday 07 March 2010 12:36:03, Rogutės Sparnuotos wrote :
> > The possibility to use '!' as a negation character is a new feature.
> > It was added in 2.2.7 (2009-11-08).
>
> It is not exactly a new feature, it was for as long as I remember in the
> documentation. When we had to deal with it to fix PHP 5.3 problems, we found
> out it didn't work as intended. It might have worked before.
>
> And this happens in the function GlobToPCRE() which may be used by functions
> and recipes other than pagelists for matching other things than lists of
> Group.Page.
While the function may be used for other things, '!' in patterns didn't
work (and '-' did) at least since 2.2.0-beta1 appeared (2006-09-25) and
nobody complained. So to me, this is a new feature added 4 months ago.
> > I think it should be removed, and the hyphen should stay as the only
> > negation character, as having two 'intuitive' negation characters is
> > counterintuitive. And, quite possibly, category markup was designed as
> > [[!Name]], because the exclamation mark wasn't used elsewhere at the time.
>
> This is a good candidate for a PITS entry -- feel free to create a new one.
Done: http://www.pmwiki.org/wiki/PITS/01176
--
-- Rogutės Sparnuotos
More information about the pmwiki-users
mailing list