In regards to the 409 line command file containing a long series of:
bt n > output-n
with "n" taking on 407 different values and then ending with the line:
! bash script
[[That last command fails because the pipe call fails.]]
I thought I'd let you know the oldish version, too.
In doing so, it seems the program goes through all the startup rigmarole
before processing options. It shouldn't do that. No point in bumping into
failing configurations if all you are going to do is print out a version.
# crash --version > c-cmd.log
gdb called without error_hook: No struct type named ldlm_lock.
gdb called without error_hook: No struct type named ldlm_lock.
gdb called without error_hook: /root/.gdbinit:78: Error in sourced command file:
No struct type named ldlm_lock.
/root/.gdbinit:78: Error in sourced command file:
No struct type named ldlm_lock.
crash 5.1.1-2.el6
Copyright (C) 2002-2011 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for details.
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".