[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commitinfo behaviour
From: |
Derek R. Price |
Subject: |
Re: Commitinfo behaviour |
Date: |
Fri, 26 Jan 2001 12:04:32 -0500 |
Laine Stump wrote:
> Do this instead:
>
> ^bbb script1 .....
> ^aaa script2 .....
>
> "^" makes sure that the "bbb" or "aaa" is at the beginning of the
> directory name. Note that the "/*" isn't doing what you think - it's
> matching "0 or more '/' characters". Remember, these are *real*
> regexes, not shell pathname wildcards...
Even better, use
^bbb\(/\|$\) script1 .....
^aaa\(/\|$\) script2 .....
The '\(/\|$\)' is the CVS regex incantation to match "'/' or the end of the
line" and should guarantee you match a complete directory name and not a
substring of another directory. I'll probably check a few examples into the
manual soon. I think CVS uses the same regex mumbo jumbo sed uses if you want a
man page.
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden OpenAvenue ( http://OpenAvenue.com )
--
If [my] opinions are sound, they will occur to others, and will prevail by
their own weight, without the aid of names.
- Thomas Jefferson to Samuel Kercheval, 1816