mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-24 17:57:48 +03:00
tests: aux.sh use subshell for simple redirection
This commit is contained in:
parent
57779e39ec
commit
c31614eccc
@ -131,9 +131,11 @@ STACKTRACE() {
|
||||
|
||||
# Get backtraces from coredumps
|
||||
if which gdb &>/dev/null; then
|
||||
echo bt full > gdb_commands.txt
|
||||
echo l >> gdb_commands.txt
|
||||
echo quit >> gdb_commands.txt
|
||||
{
|
||||
echo bt full
|
||||
echo l
|
||||
echo quit
|
||||
} > gdb_commands.txt
|
||||
# TODO: use sysctl to get 'core' position in system
|
||||
for i in core*; do
|
||||
test -f "$i" || break # empty globbing
|
||||
|
Loading…
x
Reference in New Issue
Block a user