[cvsnt] Incorrect variable expansion in administrative files
Arthur Barrett
arthur.barrett at march-hare.com
Sun Sep 13 23:35:30 BST 2009
Gabriel,
> ALL cmd /c echo ${CVSROOT}12345
>
> after executing any command the output is:
>
> /slrepo2345
>
> Expected output:
>
> /slrepo12345
>
> Looks like variable expansion "eats" the first character from the
> remaining text. The same happens with any other variable ${USER},
> ${REAL_CVSROOT}, etc.
Thanks for the report.
Looking at the code - this behaviour appears to be deliberately coded,
but certainly the manual doesn't make it clear.
If you use braces then the first character after the closing brace is
always discarded:
ALL cmd /c echo ${CVSROOT} 12345
I tested CVS 1.12.13 and it does NOT drop the first character.
So I propose:
* CVSNT 2.5.04 - no change
* CVSNT 2.5.05 - 1.12.13 behaviour
Bug number assigned 5722.
Regards,
Arthur Barrett
More information about the cvsnt
mailing list