gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: [PATCH] my-project-id


From: James Blackwell
Subject: Re: [Gnu-arch-users] Re: [PATCH] my-project-id
Date: Fri, 23 Apr 2004 10:48:37 -0400

>     > Why not just set a regexp that will be matched against the fully
>     > qualified version name?
>
> That would be harder to use.
>
> For that matter, I'm tempted to suggest that the last component in a
> regexp set (version id) not be a regexp at all --- but be a range
> expression of version-ids.   E.g.: 
>
>
>       tla--.*--{1.1,1.2.1}

>
> which matches 
>
>       tla--devo--1.2
>
> but not
>
>       tla--devo--1.2.1.1
>
> What do you think of that?


I think you make your point. 

The simples regex I could come up with that could specify that range
was:

      tla--.*--1\.(1(\..*)|2)$

But even after making it, I'm still not *quite* sure that would exactly
match right all the time. 

Even experienced admins and coders are inclined to make basic mistakes
like forgetting to escape dot.

I vote for a range expression.




>
>
>     > In order to add a notion of priority, you can either keep all
>     > the REGEXP<->ID pairs in an ordered list and let the user change
>     > the ordering,
>
>
> Now that you mention it --- even within regexp lists, there is a need
> for order.   For example, what happens with:
>
>
>     % tla my-project-id tla--.*  ID1
>     % tla my-project-id .*--devo ID2
>
>     % tla my-project-id tla--devo--1.2
>     ????
>
> What's the output?  ID1 or ID2?  So, yes some mechanism is needed for
> users to order these things.
>
>
> -t
>
>
>
> _______________________________________________
> Gnu-arch-users mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnu-arch-users
>
> GNU arch home page:
> http://savannah.gnu.org/projects/gnu-arch/
>


-- 
James Blackwell          Please do not send me carbon copies of mailing
Smile more!              list posts. Such mail is unsolicited. Thank you!

GnuPG (ID 06357400) AAE4 8C76 58DA 5902 761D  247A 8A55 DA73 0635 7400




reply via email to

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