bug-autoconf
[Top][All Lists]
Advanced

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

Re: 2.53b on BeOS, 7 failures


From: Paul Eggert
Subject: Re: 2.53b on BeOS, 7 failures
Date: Fri, 26 Jul 2002 23:21:34 -0700 (PDT)

> From: Brian Francis <address@hidden>
> Date: Fri, 26 Jul 2002 19:57:16 -0700 (-0700)
> 
> > expr XY/ : 'X\(.*[^/]\)'
> Y/

OK, your "expr" command is definitely broken.  Perhaps it thinks that
"^" is an ordinary character inside bracket expressions.  Possibly
the bug is in your regular expression matcher (in your C library);
for example, if your regexp matcher thinks that "^" is just an ordinary
character, that would explain the bug.

Also, perhaps we don't need to worry about the bug, if your "dirname"
command is not broken.

What is the output of the following commands?  I enclose the correct
output (as per POSIX) after each command.

$ expr 'a' : '\([^a]\)'

$ expr 'b' : '\([^a]\)'
b
$ expr '^' : '\([^a]\)'
^
$ dirname a/b/c
a/b
$ dirname //1/3///
//1
$ dirname /1/3///
/1
$ dirname ./1/3///
./1
$ dirname ../../2/3///
../../2
$ dirname //1//3/
//1
$ dirname /1//3/
/1
$ dirname ./1//3/
./1
$ dirname ../../2//3/
../../2



reply via email to

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