Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-8
ADD ALIAS
apostrophes ('). To include a quote in a quote-delimited replacement string, use a
pair of quotes. Likewise, to include an apostrophe in an apostrophe-delimited
replacement string, use a pair of apostrophes.
Usage Considerations
Restrictions on the Contents of the Replacement String
An alias replacement string can refer to other aliases (by name), but it cannot
contain the XC command or any of the Fix commands (FA, FB, FC, and FK).
Alias Restrictions
Aliases are not expanded for a pattern in the MATCH IDENTIFIER or the
MATCH SCOPE commands.
Aliases are not expanded in HELP command parameters or with the HELP
command.
Aliases are not expanded following the keyword ALIAS in the ALIAS, ADD
ALIAS, DELETE ALIAS, and LIST ALIAS commands.
Using Aliases in the BREAK THEN Clause
You can use an alias name as the parameter to the THEN clause of the BREAK
command; for example:
When the break event occurs, Inspect executes the command list specified in the
alias replacement string. If the command list includes a RESUME command,
Inspect does not prompt for a command; instead, it resumes execution
immediately.
Recursive Problems with Aliases
This examples illustrate how attempting to add a recursive alias will cause direct
recursion, as in:
will cause this error:
Indirect recursion, as in:
ADD ALIAS ShowMe = "DISPLAY pitch,roll,yaw,speed;RESUME"
BREAK #inject.verify THEN ShowMe
ADD ALIAS MYPROC = "MYPROC"
** Inspect error 380 ** Recursive alias definition
ADD ALIAS MYPROC = "MYPROC;DISPLAY MYDATA;RESUME"