Add one more pair of quotes.
authordrepper <drepper>
Tue, 1 Sep 1998 18:57:58 +0000 (18:57 +0000)
committerdrepper <drepper>
Tue, 1 Sep 1998 18:57:58 +0000 (18:57 +0000)
debug/catchsegv.sh

index a813b6d..6ca404d 100755 (executable)
@@ -85,7 +85,7 @@ if test $exval -gt 128 && test -f "$segv_output"; then
   sed '1,/Backtrace/d' "$segv_output" |
   (while read line; do
      case "$line" in
   sed '1,/Backtrace/d' "$segv_output" |
   (while read line; do
      case "$line" in
-       [*) addr=`echo $line | sed 's/^\[\(.*\)\]$/\1/'`
+       [*) addr=`echo "$line" | sed 's/^\[\(.*\)\]$/\1/'`
           complete=`addr2line -f -e "$prog" $addr 2>/dev/null`
           if test $? -eq 0; then
              echo "`echo "$complete"|sed 'N;s/\(.*\)\n\(.*\)/\2(\1)/;'`$line"
           complete=`addr2line -f -e "$prog" $addr 2>/dev/null`
           if test $? -eq 0; then
              echo "`echo "$complete"|sed 'N;s/\(.*\)\n\(.*\)/\2(\1)/;'`$line"