[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restrict AC_CONFIG_LIBOBJ_DIR
From: |
Stepan Kasal |
Subject: |
Re: restrict AC_CONFIG_LIBOBJ_DIR |
Date: |
Wed, 11 May 2005 09:15:29 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
I apologize for the delay.
On Sun, May 01, 2005 at 11:07:58PM -0700, Paul Eggert wrote:
> Stepan Kasal <address@hidden> writes:
>
> > +# m4_re_relative_path
> > +# -------------------
> > +# Regexp for `^[-.a-zA-Z_0-9][-.a-zA-Z_0-9/]*$'
>
> A relative path can start with "-"?
I didn't want to be _that_ restrictive. I wanted to implement this:
1) the string can contain only characters -.a-zA-Z_0-9/
2) the first character is not /
If you want to forbid "-dir", you should perhaps also forbid "./-dir".
So we'd probably get:
^\(\.\.?/+\|[a-zA-Z_0-9][-.a-zA-Z_0-9/]*/*\)+$
(Yes, I think path of ../../build-aux can make sense, if the configure
belongs to a subpackage.)
Which regexp would you pick?
Stepan