On Mon, 17 Apr 2006, Bob Proulx wrote:
Good suggestion. But I think that needs another \n in the printf.
Doesn't it?
gdb -x <( printf "run\nbt\nq\n" ) --args src/shred --remove --zero adam adam1
It's certainly cleaner, but gdb on my system seems to cope without. I
tried it like this:
gdb -x <( printf "run\nbt" ) --args bash -c 'kill -6 $$'
Program received signal SIGABRT, Aborted.
0x00afe402 in __kernel_vsyscall ()
#0 0x00afe402 in __kernel_vsyscall ()
#1 0x00b453f6 in kill () from /lib/libc.so.6
#2 0x08076683 in kill_pid ()
#3 0x0809e03e in kill_builtin ()
#4 0x08069719 in dispose_exec_redirects ()
#5 0x0806cf4c in execute_shell_function ()
#6 0x0806afe5 in execute_command_internal ()
#7 0x0809b299 in parse_and_execute ()
#8 0x0805c16c in unset_bash_input ()
#9 0x0805d245 in main ()
(gdb)
Cheers,
Phil
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils