This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
env variables in command files
- To: gdb at sourceware dot cygnus dot com
- Subject: env variables in command files
- From: Kevin Hilman <khilman at equator dot com>
- Date: 10 Nov 1999 11:18:28 -0800
- Organization: None to speak of.
- Reply-To: Kevin Hilman <khilman at equator dot com>
Is there a way to use env variables from gdb command files?
I can do a 'show env' but I can't figure out how to use the result.
It's not in the history. Ideas?
(gdb) show env SHELL
SHELL = /bin/bash
(gdb) p $0
The history is empty.
(gdb)
-kev-