Hi Michael,

looks like the manpage needs an adjustment, or at least a note when
the GNU libc is used.

Regards,

        Joey

Vincent Fourmond wrote:
> Package: manpages
> Version: 2.01-1
> Severity: minor
> File: regex.7.gz
> 
> 
>   Hello  !
> 
>   The regex.7.gz mentions that [[:>:]] and [[:<:]] are available to designate 
> word boundaries. 
> However, neither grep nor sed, which are build on the standard libc regcomp 
> do recognise this syntax. 
> Moreover, the small program here 
> 
> #include <regex.h>
> #include <sys/types.h>
> #include <iostream>
> 
> using namespace std;
> 
> int main()
> {
>   regex_t RE;
>   int err_code = regcomp(&RE, "[[:<:]]",
>                        REG_EXTENDED);
>   char Buffer[100];
>   if(err_code) {
>     regerror(err_code, &RE, Buffer, 100);
>     cerr << "Error : " << Buffer << endl;
>   }
> }
> 
> 
> produces the following error message:
> 
> Error : Invalid character class name
> 
> My guess is that this feature is not implemented anymore, or has never been. 
> Then, two solutions: 
> either remove it from the documentation, or at least mention that it's not 
> supported anymore - either 
> put the feature back into libc ;-) !
> 
>   Thanks for considering this report
> 
>       Vincent Fourmond

-- 
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect.

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to