[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identifier matching in the at command

From: Artur Skonecki
Subject: Re: Identifier matching in the at command
Date: Sun, 5 Feb 2012 20:20:46 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Just out of pure curiosity. What are you trying to accomplish?

On Sun, 5 Feb 2012, Adrian Fita wrote:

On Fri, Feb 3, 2012 at 13:48, Adrian Fita <address@hidden> wrote:


I'm interested in matching only a list of windows (title or numbers)
or a range of numbers. Is this possible? If yes, how?

Seeing there doesn't seem to be an answer too soon, I poked around in
the source code at and I
think I found the code that parses the identifier in the "at" command.
It's located in the file process.c and begins at line no 1587. There,
at line 1605 I found the following:

if (strncmp(args[0], fore->w_title, n))

It seems that the title is only matched with a srtcnmp, not at all
with some regexp which would allow some advanced expressions for
matching the title. So I guess I'll have to make do with the three
matching methods I mentioned in the previous message. Am i right?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]