cmd.rst
changeset 355 cbb3da2b12fb
parent 350 f7899ef26f6f
child 356 9592e984ea6d
equal deleted inserted replaced
351:95bbda08b432 355:cbb3da2b12fb
     1 -*- outline -*-
     1 -*- outline -*-
       
     2 
       
     3 * Quoting.
       
     4 
       
     5  * Arguments are delimited by white space, which is either a space or a tab.
       
     6  * A string surrounded by double quotation marks is interpreted as a single
       
     7    argument.
       
     8  * A double quotation mark preceded by a backslash, \", is interpreted as a
       
     9    literal double quotation mark.
       
    10  * Backslashes are interpreted literally, unless they immediately precede a
       
    11    double quotation mark.
       
    12  * If an even number of backslashes is followed by a double quotation mark,
       
    13    then one backslash (\) is placed in the argv array for every pair of
       
    14    backslashes (\\), and the double quotation mark (") is interpreted as a
       
    15    string delimiter.
       
    16  * If an odd number of backslashes is followed by a double quotation mark,
       
    17    then one backslash (\) is placed in the argv array for every pair of
       
    18    backslashes (\\) and the double quotation mark is interpreted as an escape
       
    19    sequence by the remaining backslash, causing a literal double quotation
       
    20    mark (") to be placed in argv.
       
    21  * In double quote mark need surround such chars:
       
    22      & < > [ ] { } ^ = ; ! ' + , ` ~
       
    23 
       
    24   http://msdn.microsoft.com/en-us/library/ms880421.aspx
       
    25                 Parsing C Command-Line Arguments
     2 
    26 
     3 * Variables.
    27 * Variables.
     4 
    28 
     5 Variable name start with letter and underscore, next chars can be letter,
    29 Variable name start with letter and underscore, next chars can be letter,
     6 number and underscore. Variable name is case insensitive.
    30 number and underscore. Variable name is case insensitive.