In article <[EMAIL PROTECTED]>
"Mark Kettenis <[EMAIL PROTECTED]>" writes:
> I did 'setenv A' in ~/.tcshrc and 'unsetenv A' on tcsh.
> I executed the following program (test_gdb.c) on gdb. The behavior is
> different from that on tcsh. NULL is not printed on gdb.
>
> GDB executes your program via the shell, the shell reads your
> ~/.tcshrc and executes the `setenv A'. So `A' wil be in your
> program's environment.
So why doesn't 'show env A' on gdb print the environment variable A?
~/.tcshrc:
setenv A
> unsetenv A
> gdb
(gdb) show env A
Environment variable "A" not defined.
--------------------------------------------
SUSUKITA, Ryutaro
The Institute of Physics and Chemistry(RIKEN)
Computational Science Division