Environment Variable Expansion

The debugger expands environment variables and the leading tilde (~) in the following cases:

As in any shell, you can group an environment variable name using a pair of curly braces ({}), and quote a dollar sign ($) by preceding it with a backslash (\).

The following table shows how various environment variables expand. It assumes that the home directory is /usr/users/hercules and the environment variable BIN is /usr/users/hercules/bin.

Command with Environment

Variable Expands into

load ~/a.out

load /usr/users/hercules/a.out

load $BIN/a.out

load /usr/users/hercules/bin/a.out

load ${BIN}2/a\$b

load /usr/users/hercules/bin2/a$b

map source directory $BIN ${BIN}2

map source directory /usr/users/hercules/bin /usr/users/hercules/bin2

stop at "$BIN/a.out":20

stop at "/usr/users/hercules/bin/a.out":20

run $BIN/a.out ~/core

run /usr/users/hercules/bin/a.out /usr/users/hercules/core


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.