From b50a4830faad08ce05a42f3cbbad87f2f62aca83 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 3 Dec 2009 08:01:45 +0000 Subject: split out, simplify, and document the extended version matching code --- symtree.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'symtree.sh') diff --git a/symtree.sh b/symtree.sh index 64a3333..d34d082 100755 --- a/symtree.sh +++ b/symtree.sh @@ -20,7 +20,7 @@ usage() { sym_list() { # with large strings, bash is much slower than sed local type=$1; shift - echo "%%~"`echo ",$@" | sed "s:,:,%${type}%:g"` + echo "%${type}%$@" | sed "s:,:,%${type}%:g" } show_elf() { local elf=$1 @@ -32,7 +32,7 @@ show_elf() { libs=$(scanelf -qF '#F%n' "${resolved}") local u uu d dd - u=$(scanelf -q -F'#s#F' -s'%u%' "${elf}") + u=$(scanelf -q -F'%s#F' -s'%u%' "${elf}") for lib in ${libs//,/ } ; do lib=${lib##*/} rlib=$(find_elf "${lib}" "${resolved}") -- cgit v1.2.3-18-g5258