[cvsnt] keyword dollar sign collision with variable

Tony Hoyle tony.hoyle at march-hare.com
Tue Oct 2 19:46:31 BST 2007


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.


Boris Smirnov wrote:
> Hallo,
> 
> I'm using a keyword substitution in my files that I'm developing. 
> Problem is that the program that uses my files has already $ dollar sign 
> reserved for variables and always waits for a variable name after $. So 
> when I have keyword $Log$ it brings a lot of error messages saying that 
> Log is not a variable and it was no variable found after second $ sign. 
> I can avoid it by adding "\" before the $ sign but that works only for 
> first substitution. After that the second "\" was replaced and exists 
> not anymore.
> 
> Is there a workaround ?
> Thanks for every help.

Any language will allow you to put the keywords in comments eg.

/* $Log$ */

btw. I'd avoid $Log as it creates merging problems.

Tony


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook