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: Brian Francis
Subject: Re: 2.53b on BeOS, 7 failures
Date: Sat, 27 Jul 2002 18:53:11 -0700 (-0700)

> > 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

Here's my output.  The only one that differs is the first one.

506 /boot/home/develop/autoconf-2.53b>expr 'a' : '\([^a]\)'
a
507 /boot/home/develop/autoconf-2.53b>expr 'b' : '\([^a]\)'
b
508 /boot/home/develop/autoconf-2.53b>expr '^' : '\([^a]\)'
^
509 /boot/home/develop/autoconf-2.53b>dirname a/b/c
a/b
510 /boot/home/develop/autoconf-2.53b>dirname //1/3///
//1
511 /boot/home/develop/autoconf-2.53b>dirname /1/3///
/1
512 /boot/home/develop/autoconf-2.53b>dirname ./1/3///
/1
513 /boot/home/develop/autoconf-2.53b>dirname ../../2/3///
./../2
514 /boot/home/develop/autoconf-2.53b>dirname //1//3/
//1
515 /boot/home/develop/autoconf-2.53b>dirname /1//3/
/1
516 /boot/home/develop/autoconf-2.53b>dirname ./1//3/
/1
517 /boot/home/develop/autoconf-2.53b>dirname ../../2//3/
./../2

Regards,
Brian






reply via email to

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