[cvsnt] Re: loginfo bug ?

Russell Yanofsky rey4 at columbia.edu
Mon Jun 23 22:34:27 BST 2003


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.


Terris Linenbach wrote:
> I'm totally confused about what happens when there are no quotes
> around "%{sVv}"

If your loginfo line is:

  DEFAULT dgloginfohtmlnntpemail %{sVv} "$USER"

And you check in these two files:

  a & b.txt
  c & d.txt

then your script will be invoked with a command line that looks like:

  dgloginfohtmlnntpemail "folder a\ &\ b.txt,1.3,1.4 c\ &\ d.txt,1.1,1.2"
"terris"

Your script will probably never see this string, though, because your script
interpreter will break it up into an list of arguments for you. The most common
way of breaking a command line into arguments is the way used by Microsoft's C
runtime library which is described at:

http://msdn.microsoft.com/library/en-us/vclang/html/_pluslang_Parsing_C.2b2b_.Command.2d.Line_Arguments.asp

but many programs (like Cygwin programs) will follow different rules. Anyway,
assuming your script interpreter follows the standard rules, your script will
get a list of 3 arguments:

  dgloginfohtmlnntpemail
  folder a\ &\ b.txt,1.3,1.4 c\ &\ d.txt,1.1,1.2
  terris

- Russ




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