OSF DCE Administration Guide--Core Components

Using the DCE Control Program Command Language
The following list shows the special characters that you can include in a string of
elements by using the backslash character:
\b Backspace
\t Tab
\e Escape
\n Newline
\r Carriage-return
\{ Left brace
\} Right brace
\[ Open bracket
\] Close bracket
\$ Dollar sign
\ (space) Space (" ")
\; Semi-colon
\" Double quote
\\ Backslash
\(newline) Nothing
\ddd Octal value
2.5 Documenting Scripts with Comments
When you are writing scripts, you might want to include some comment lines to remind
yourself and others what the script is doing. Use the # (number sign) to insert comments.
The DCE control program suppresses interpretation between a number sign and the next
newline. You must place the number sign in a position where dcecp expects the first
character of a command. Both of the following examples are valid:
seta5
#setsato5
seta5;#setsato5
The following example is not valid because the number sign is not positioned where
dcecp expects the first character of a command:
seta5#setsato5
A common use of comments is to document procedures in scripts as in the following
sample script fragment:
#
# _dcp_cleanup_user_create - This function undoes changes
# after a failure in one of the user create functions as
# though the operation never occurred.
#
124243 Tandem Computers Incorporated 27