Hello,

I apologize for the delay.

On Sun, May 01, 2005 at 11:07:58PM -0700, Paul Eggert wrote:
> Stepan Kasal <[EMAIL PROTECTED]> 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


Reply via email to