1 --- glibc-2.10.1/elf/ldd.bash.in 2009-06-08 23:02:27.663745478 +0300
2 +++ glibc-2.10.1/elf/ldd.bash.in 2009-06-08 23:04:15.706861781 +0300
6 # Copyright (C) 1996-2011, 2012 Free Software Foundation, Inc.
7 # This file is part of the GNU C Library.
11 --vers | --versi | --versio | --version)
12 echo 'ldd (GNU libc) @VERSION@'
13 - printf $"Copyright (C) %s Free Software Foundation, Inc.
14 + printf "Copyright (C) %s Free Software Foundation, Inc.
15 This is free software; see the source for copying conditions. There is NO
16 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 - printf $"Written by %s and %s.
19 + printf "Written by %s and %s.
20 " "Roland McGrath" "Ulrich Drepper"
23 --h | --he | --hel | --help)
24 - echo $"Usage: ldd [OPTION]... FILE...
25 + echo "Usage: ldd [OPTION]... FILE...
26 --help print this help and exit
27 --version print version information and exit
28 -d, --data-relocs process data relocations
30 -u, --unused print unused direct dependencies
31 -v, --verbose print all information
33 - echo $"For bug reporting instructions, please see:
34 + echo "For bug reporting instructions, please see:
35 <http://www.gnu.org/software/libc/bugs.html>.
42 - echo >&2 $"ldd: option \`$1' is ambiguous"
43 + echo >&2 "ldd: option \`$1' is ambiguous"
46 --) # Stop option processing.
50 - echo >&2 'ldd:' $"unrecognized option" "\`$1'"
51 - echo >&2 $"Try \`ldd --help' for more information."
52 + echo >&2 'ldd:' "unrecognized option" "\`$1'"
53 + echo >&2 "Try \`ldd --help' for more information."
58 # environments where the executed program might not have permissions
59 # to write to the console/tty. But only bash 3.x supports the pipefail
60 # option, and we don't bother to handle the case for older bash versions.
61 -if set -o pipefail 2> /dev/null; then
63 - eval $add_env '"$@"' | cat
67 - eval $add_env '"$@"'
71 + eval $add_env '"$@"'
76 - echo >&2 'ldd:' $"missing file arguments"
77 - echo >&2 $"Try \`ldd --help' for more information."
78 + echo >&2 'ldd:' "missing file arguments"
79 + echo >&2 "Try \`ldd --help' for more information."
86 if test ! -e "$file"; then
87 - echo "ldd: ${file}:" $"No such file or directory" >&2
88 + echo "ldd: ${file}:" "No such file or directory" >&2
90 elif test ! -f "$file"; then
91 - echo "ldd: ${file}:" $"not regular file" >&2
92 + echo "ldd: ${file}:" "not regular file" >&2
94 elif test -r "$file"; then
95 - test -x "$file" || echo 'ldd:' $"\
96 + test -x "$file" || echo 'ldd:' "\
97 warning: you do not have execution permission for" "\`$file'" >&2
102 # This can be a non-ELF binary or no binary at all.
104 - echo $" not a dynamic executable"
105 + echo " not a dynamic executable"
109 @@ -190,12 +184,12 @@
110 try_trace "$RTLD" "$file" || result=1
113 - echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2
114 + echo 'ldd:' ${RTLD} "exited with unknown exit code" "($ret)" >&2
119 - echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
120 + echo 'ldd:' "error: you do not have read permission for" "\`$file'" >&2