This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix BZ #217


Hi!

xtrace /not_found
printf: usage: printf format [arguments]
/usr/bin/xtrace: line 145: executable `/not_found' not found\n: No such file
or directory
Try `xtrace --help' for more information.

as opposed to the expected:

xtrace /not_found
executable `/not_found' not found
Try `xtrace --help' for more information.

2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>

	[BZ #217]
	* debug/xtrace.sh: Fix typo in error diagnostics.

--- libc/debug/xtrace.sh	17 May 2004 18:37:11 -0000	1.12
+++ libc/debug/xtrace.sh	11 Jun 2004 12:19:19 -0000
@@ -143,7 +143,7 @@
 program=$1
 shift
 if test ! -f "$program"; then
-  printf >2& $"executable \`$program' not found\n"
+  printf >&2 $"executable \`$program' not found\n"
   help_info
 fi
 if test ! -x "$program"; then

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]