about summary refs log tree commit diff
path: root/elf/ldd.bash.in
diff options
context:
space:
mode:
Diffstat (limited to 'elf/ldd.bash.in')
-rw-r--r--elf/ldd.bash.in49
1 files changed, 32 insertions, 17 deletions
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 6f4da3d8f9..54dc837d3e 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -1,6 +1,6 @@
 #! @BASH@
 
-# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -37,11 +37,12 @@ while test $# -gt 0; do
   case "$1" in
   --vers | --versi | --versio | --version)
     echo 'ldd (GNU libc) @VERSION@'
-    echo $"Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+    echo $"Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 Written by Roland McGrath and Ulrich Drepper."
-    exit 0 ;;
+    exit 0
+    ;;
   --h | --he | --hel | --help)
     echo $"ldd [OPTION]... FILE...
       --help              print this help and exit
@@ -50,31 +51,39 @@ Written by Roland McGrath and Ulrich Drepper."
   -r, --function-relocs   process data and function relocations
   -v, --verbose           print all information
 Report bugs using the \`glibcbug' script to <bugs@gnu.org>."
-    exit 0 ;;
+    exit 0
+    ;;
   -d | --d | --da | --dat | --data | --data- | --data-r | --data-re | \
   --data-rel | --data-relo | --data-reloc | --data-relocs)
     warn=yes
-    shift ;;
+    shift
+    ;;
   -r | --f | --fu | --fun | --func | --funct | --functi | --functio | \
   --function | --function- | --function-r | --function-re | --function-rel | \
   --function-relo | --function-reloc | --function-relocs)
     warn=yes
     bind_now=yes
-    shift ;;
+    shift
+    ;;
   -v | --verb | --verbo | --verbos | --verbose)
     verbose=yes
-    shift ;;
+    shift
+    ;;
   --v | --ve | --ver)
     echo >&2 $"ldd: option \`$1' is ambiguous"
-    exit 1 ;;
+    exit 1
+    ;;
   --)		# Stop option processing.
-    shift; break ;;
+    shift; break
+    ;;
   -*)
     echo >&2 'ldd:' $"unrecognized option" "\`$1'"
     echo >&2 $"Try \`ldd --help' for more information."
-    exit 1 ;;
+    exit 1
+    ;;
   *)
-    break ;;
+    break
+    ;;
   esac
 done
 
@@ -84,12 +93,15 @@ case $# in
 0)
   echo >&2 'ldd:' $"missing file arguments"
   echo >&2 $"Try \`ldd --help' for more information."
-  exit 1 ;;
+  exit 1
+  ;;
 1)
   # We don't list the file name when there is only one.
   case "$1" in
-  */*) file="$1" ;;
-  *) file="./$1" ;;
+  */*) file="$1"
+       ;;
+  *) file="./$1"
+     ;;
   esac
   if test ! -f "$file"; then
     echo "ldd: ${file}:" $"no such file"
@@ -118,14 +130,17 @@ case $# in
     echo 'ldd:' $"error: you do not have read permission for" "\`$file'"
     exit 1
   fi
-  exit ;;
+  exit
+  ;;
 *)
   result=0
   for file; do
     echo "${file}:"
     case "$file" in
-    */*) : ;;
-    *) file="./$file" ;;
+    */*) :
+         ;;
+    *) file="./$file"
+       ;;
     esac
     if test ! -f "$file"; then
       echo "ldd: ${file}:" $"no such file"