[Pkg-openldap-devel] Re: r542 - openldap/trunk-2.2/debian

Torsten Landschoff torsten@debian.org
Sun, 24 Apr 2005 08:56:57 +0200


--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Steve,=20

On Sun, Apr 24, 2005 at 04:25:10AM +0000, Steve Langasek wrote:
> Log:
> re-fix the grep expression, so that it actually works, thanks for checkin=
g Stephen :)
=2E..
> -  if [ -z "$RET" ] || ! echo "$RET" | grep -q '^[a-zA-Z0-9\-\.]*$'; then
> +  if [ -z "$RET" ] || ! echo "$RET" | grep -q '^[a-zA-Z0-9.-]*$'; then
>      db_fset slapd/domain seen false
>      invalid=3Dtrue
>    fi

I wonder if this is the correct fix. Somebody told me that grep would
bark because it now expects the second part of the range. I am not sure
how it is done right but maybe [-a-zA-Z0-9.] makes more sense? What do
you think?

Greetings

	Torsten

--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCa0M5dQgHtVUb5EcRAg36AJ9fjpJ4P7FwmetxexpIuYEViKGQswCfet5j
oeRyBhAHgjNrBQwLpSFcLO8=
=gHed
-----END PGP SIGNATURE-----

--HlL+5n6rz5pIUxbD--