# HG changeset patch # User Oleksandr Gavenko # Date 1275594180 -10800 # Node ID 9617dc568eaf8db7c427f7e0135eae49a0223750 # Parent 3f0531193caf3425de3f7f1afb44c89193f15e71# Parent 88c6e9fe19cd62c2cd7aa692f2727205ecb15e19 merged diff -r 88c6e9fe19cd -r 9617dc568eaf cmd.rst --- a/cmd.rst Sun May 30 21:44:42 2010 +0300 +++ b/cmd.rst Thu Jun 03 22:43:00 2010 +0300 @@ -19,10 +19,13 @@ sequence by the remaining backslash, causing a literal double quotation mark (") to be placed in argv. * In double quote mark need surround such chars: - & < > [ ] { } ^ = ; ! ' + , ` ~ + & < > [ ] { } ^ = ; ! ' + , ` ~ % Also all this char can be escaped by ^ char. * Long line can be truncated by ^ char, in this case trailing white spaces not allowed. + * To quote percent sign % before alpha char in batch file double it + occurrences or plase in quotes: + prog '%'HOME'%' "%"HOME"%" %%HOME% http://msdn.microsoft.com/en-us/library/ms880421.aspx Parsing C Command-Line Arguments