bug-cfengine
[Top][All Lists]
Advanced

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

Re: Bug in use of regexec(), or misunderstanding of regexps?


From: Adrian Phillips
Subject: Re: Bug in use of regexec(), or misunderstanding of regexps?
Date: 15 Nov 2002 18:50:36 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "Dave" == Dave Alden <address@hidden> writes:

    Dave> Hi, I'm having trouble getting "LocateLineMatching" to work.
    Dave> The line I'm trying to match is "timeout=10", the string
    Dave> I've tried passing is "^timeout*", but it returns 7 in
    Dave> pmatch.rm_eo (this is under RedHat 8.0 and 7.3).  This means
    Dave> that it fails the "pmatch.rm_eo == strlen(ip->name)" check.
    Dave> Am I doing something wrong?  ...thnx, ...dave alden

You're trying to use shell matching, not regex, try "^timeout.*"

Sincerely,

Adrian Phillips

-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]




reply via email to

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