[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: NetBSD regex problem?? (ITS#1579)
dax@gurulabs.com wrote:
>
> On Tue, 5 Feb 2002, Pierangelo Masarati wrote:
>
> > Same result, I guess, but with the slight overhead
> > of calling regexec() instead of comparing 0 length
> > strings ;)
>
> I just tested and discovered that:
>
> dn.base="" doesn't give same behaviour as dn=()
>
> It appears as if dn=() on NetBSD (and Linux) gives the same behavior as
> dn="" on Linux.
My mistake again:
dn.base="" corresponds to dn.regex="^$";
dn.regex="()" seems to correspond to dn.regex=".*",
which, on Linux, corresponds to dn.regex="".
Pierangelo
--
Dr. Pierangelo Masarati | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano |
mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy |
http://www.aero.polimi.it/~masarati