From 3040951ca09337bcfcc138f631d1a842bc8ea21f Mon Sep 17 00:00:00 2001 From: Eric Bélanger Date: Thu, 23 Jun 2011 19:45:38 -0400 Subject: Replace backticks by $() and add missing quotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bélanger Signed-off-by: Pierre Schmitz --- lddd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lddd') diff --git a/lddd b/lddd index 643782c..1bd69a8 100755 --- a/lddd +++ b/lddd @@ -25,9 +25,9 @@ for tree in $PATH $libdirs $extras; do -name '*.mcopclass' ! -name '*.mcoptype') IFS=$ifs for i in $files; do - if [ `file $i | grep -c 'ELF'` -ne 0 ]; then + if [ $(file $i | grep -c 'ELF') -ne 0 ]; then # Is an ELF binary. - if [ `ldd $i 2>/dev/null | grep -c 'not found'` -ne 0 ]; then + if [ $(ldd $i 2>/dev/null | grep -c 'not found') -ne 0 ]; then # Missing lib. echo "$i:" >> $TEMPDIR/raw.txt ldd $i 2>/dev/null | grep 'not found' >> $TEMPDIR/raw.txt -- cgit v1.2.3-54-g00ecf