unset environment (gdb mode only)

Delete the specified environment variable.

Syntax

unset environment [ name ]

Parameters

name

Environment variable to unset.

Description

This command deletes the specified environment variable, so that it is no longer part of the environment.

To assign an environment variable an empty value, use the following command:

set environment name

If you do not specify name, the debugger deletes all environment variables.

Example

(idb)  set environment FOO
(idb)  show environment
CPATH=/opt/intel/...
FOO=
FPATH=/opt/intel/...
HISTCONTROL=ignoreboth
HOME=/home/hal
       :
(idb)  unset environment FOO
(idb)  show environment
CPATH=/opt/intel/...
FPATH=/opt/intel/...
HISTCONTROL=ignoreboth
HOME=/home/hal
       :

See Also


Submit feedback on this help topic

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