Variables in VCS Commands

To make the system more robust in response to system and directory changes, you can use variables in your commands. For example, if the path to your version control system's executable is changed, and you have used a variable instead of a hard-coded path in your commands, you only need to edit that path in one place, and all commands using the variable will now use the updated path. The syntax is that of SH (the standard Unix shell). So, if in a command, you want to refer to a variable called USER, you would refer to it in the text of the command as ${USER}.

Each variable has its own name, label, status (if it is a "basic" variable), and value. If the variable is "basic", it is displayed in the Customizer Dialog where its value can be set. The label property is the label which is displayed in the Customizer Dialog for that variable.

A simple example of this functionality would be:

MESSAGE="Hello World" 
and then define the SHOWMESSAGE command as:
cmd.exe /x /c "echo ${MESSAGE}"
Given these two lines, the actual command line that is issued to the shell to execute the SHOWMESSAGE command is
cmd.exe /x /c echo Hello World
To view the result of this command, you must check the "Open output dialog" checkbox.

There are three groups of variables: 

See also
The Generic Version Control Module
Configuring a VCS Filesystem
Dispatching Commands to the Version Control System
Modifying VCS Command Parameters and Variables
VCS Command Properties
The LIST Command

Legal Notices