[cvsnt] Incorrect variable expansion in administrative files

Arthur Barrett arthur.barrett at march-hare.com
Sun Sep 13 23:35:30 BST 2009


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


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
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook