Special Command Line Characters
Commands entered at the IDL prompt are usually interpreted as IDL statements to be executed. Other interpretations include executive commands that control execution and compilation of programs, shell commands, and so on. Input to the IDL prompt is interpreted according to the first character of the line, as shown in the following table.
Note
The information in this section applies equally to IDL used in command-line mode or in the IDL Workbench.
|
First Character
|
Action
|
|---|---|
|
|
Executive command. See About Executive Commands for details. |
|
|
Help inquiry. For example, enter |
|
|
Send an operating system commands to a subprocess. Note - the SPAWN procedure is a more flexible alternative. It need not be used interactively and the standard output of the command can be saved in an IDL string array. See "SPAWN" (IDL Reference Guide) for details. |
|
|
Batch file initiation. |
|
|
Recall / edit previous commands. |
|
|
In UNIX command-line mode, exits IDL, closes all files, and returns to operating system. |
|
|
In UNIX command-line mode, suspends IDL. |
|
|
IDL statement. |
About Executive Commands
IDL executive commands compile programs, continue stopped programs, and start previously compiled programs. All of these commands begin with a period and must be entered in response to the IDL prompt. Commands can be entered in either uppercase or lowercase and can be abbreviated. Under UNIX, filenames are case sensitive; under Microsoft Windows, filenames can be specified in any case. See "Executive Commands" (IDL Quick Reference) for a descriptions of the available executive commands.
Note
Comments (prefaced by the semicolon character in IDL code) are not allowed within executive commands.
Executive commands are used to create $MAIN$ programs. See Creating $MAIN$ Programs for details.
Special Command Line Key Combination
When working at the command line, key combinations can be used to quickly edit a command. The line-editing abilities and the keys that activate them differ somewhat between the different operating systems. To access the history of commands entered at the command line, see Recalling Commands.
Note
The behavior can also differ within the same operating system, between the terminal window-based command line version of IDL and the Command Line view in the IDL Workbench.
The table below lists the edit functions and the corresponding keys in the terminal window (Command Line) and Workbench versions of IDL.