capturing command output to a variable

Mathew Yeates mat.yeates@gmail.com
Sun Jan 11 21:23:00 GMT 2009


I understand that turning on logging will allow me to save command
output to a file. But what if I want to save the output in a
convenience variable??

e.g. How can I do something like the following where I capture the out
of the "where" command.

set $x = `where 1`
echo $x

Mathew



More information about the Gdb mailing list