[cvsnt] Re: Question about administrative file syntax

Bo Berglund bo.berglund at telia.com
Mon May 23 22:32:00 BST 2005


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.


On Mon, 23 May 2005 22:02:05 +0100, Tony Hoyle <tmh at nodomain.org>
wrote:

>Bo Berglund wrote:
>
>> Come to think of it, I guess this is similar to a bug we had during
>> the pre 2.5.01 release testing where a parameter consisting of a space
>> separated list was passed in a way that made the command interpreter
>> cut it into individual parameters. Tony fixed that back then for
>> loginfo (or was it taginfo, I don't remember now).
>> So Tony, could you have a look at this case too, please?
>> 
>It's not a separate case - the command is passed to the command 
>interpreter quoted already... in fact your batch file works perfectly 
>without quotes...
>
>DEFAULT d:/t/cvsroot/test.bat %s %m %p
>
>D:\t\CVSROOT>cvs commit -fm "test message" test.txt
>%1= test.txt
>%2= "test message"
>%3= CVSROOT
>Checking in test.txt;
>d:\repo/CVSROOT/test.txt,v  <--  test.txt
>new revision: 1.62; previous revision: 1.61
>done
>
>Tony

Strange, this is what I am getting when I only use one layer of quotes
on the parameters:

cvs commit -m "Test commit with six words comment" (in directory
F:\Engineering\Projects\Bosse\ModuleXX\)
cvs.exe commit: Examining .
committest.bat executing

Parameter 1: ModuleXXdoc.txt

Parameter 2: ThirdFile.txt

Parameter 3: Test

Parameter 4: commit

Parameter 5: with

Parameter 6: six

Parameter 7: words

Checking in ModuleXXdoc.txt;
/KORVkiosk/ModuleXX/ModuleXXdoc.txt,v  <--  ModuleXXdoc.txt
new revision: 1.68.2.31; previous revision: 1.68.2.30
done
Checking in ThirdFile.txt;
/KORVkiosk/ModuleXX/ThirdFile.txt,v  <--  ThirdFile.txt
new revision: 1.18; previous revision: 1.17
done

Then after removing the quotes altogether:
cvs commit -l -m "Test commit with six words comment" (in directory
F:\Engineering\Projects\Bosse\ModuleXX\)
cvs.exe commit: Examining .
committest.bat executing

Parameter 1: "ModuleXXdoc.txt ThirdFile.txt"

Parameter 2: "Test commit with six words comment"

Parameter 3: ModuleXX

Parameter 4: 

Parameter 5: 

Parameter 6: 

Parameter 7: 

Checking in ModuleXXdoc.txt;
/KORVkiosk/ModuleXX/ModuleXXdoc.txt,v  <--  ModuleXXdoc.txt
new revision: 1.68.2.32; previous revision: 1.68.2.31
done
Checking in ThirdFile.txt;
/KORVkiosk/ModuleXX/ThirdFile.txt,v  <--  ThirdFile.txt
new revision: 1.19; previous revision: 1.18
done

Obviously the trick is to NOT use any quoting and let CVSNT handle it
instead! Perfect!
BTW:
cvs ver
Client: Concurrent Versions System (CVSNT) 2.5.01 (Travis) Build 1976
(client/server)
Server: Concurrent Versions System (CVSNT) 2.5.01 (Travis) Build 1976
(client/server)


/Bo
(Bo Berglund, developer in Sweden)



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