From: Zdenek Kabelac Date: Thu, 29 Jun 2017 16:29:23 -0400 Subject: master - tests: utils.sh avoid iterating over ls output Message-ID: <201706292029.v5TKTNtK026950@lists01.pubmisc.prod.ext.phx2.redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=cf4b671acd4d7ff87dea3ffa88ff99377d093c50 Commit: cf4b671acd4d7ff87dea3ffa88ff99377d093c50 Parent: 4697937af46f2c95b29c627ef60ec37ba1addcf8 Author: Zdenek Kabelac AuthorDate: Thu Jun 29 21:22:23 2017 +0200 Committer: Zdenek Kabelac CommitterDate: Thu Jun 29 22:23:17 2017 +0200 tests: utils.sh avoid iterating over ls output --- test/lib/utils.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/lib/utils.sh b/test/lib/utils.sh index 6a46649..bfa98de 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -134,7 +134,7 @@ STACKTRACE() { echo bt full > gdb_commands.txt echo l >> gdb_commands.txt echo quit >> gdb_commands.txt - for core in $(ls core* 2>/dev/null); do + for core in $(echo core* 2>/dev/null); do bin=$(gdb -batch -c "$core" 2>&1 | grep "generated by" | \ sed -e "s,.*generated by \`\([^ ']*\).*,\1,") gdb -batch -c "$core" -x gdb_commands.txt "$(which "$bin")"