Pattern matching bug

Frank Steiner <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
Hi,

it seems, that strings used in any kind of lists are matched as
substrings. I.e., having this

Occupy {
    "bc"           {"lokal"}
}

will make any xterm created with ' -T "abc"' or ' -T "bcd"' appear
only in the "lokal" workspace, too, and not only those with ' -T "bc"'.

In the man page, pattern matching was never described, I found only this:

 "When a variable containing a list of strings representing windows is searched
       (e.g. to determine whether or not to enable autoraise as shown above), a
       string must be an exact, case-sensitive match to the window’s name"

So the current behaviour definitely is wrong. In 3.8.2 on had to use
"*bc" to match the xterm with title "abc", and "bc*" to match "bcd",
which was enough pattern matching for almost any case. 4.0.1 forced
me to change all "*blabla" into ".*blabla" which would be a better,
grep-like syntax, but I can't test the new machting abilities due to 
that bug.

The current behaviour causes problems as we've some windows whose
titles are substrings of others.

cu,
Frank



-- 
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.