bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

binutils-2.14: ranlib.sh doesn't handle spaces


From: Michael Deutschmann
Subject: binutils-2.14: ranlib.sh doesn't handle spaces
Date: Tue, 27 Apr 2004 18:07:28 -0700 (PDT)

I usually install the space-saver "ranlib.sh" version of ranlib on my
system.

I've noticed a bug in it.  The script uses $1 when "$1" is called for --
thus, if ranlib is run on a file with spaces in it's name, an incorrect
argument is passed to "ar".

While there are several other cases where the shell script fails to
emulate the binary version of ar/ranlib exactly, this one causes a
spurious failure in automake-1.8.3's test suite (instspc.test).

A simple fix is appended:

---- Michael Deutschmann <address@hidden>

diff -durpN binutils-2.14/binutils/ranlib.sh binutils-fixed/binutils/ranlib.sh
--- binutils-2.14/binutils/ranlib.sh    1999-05-03 00:29:10.000000000 -0700
+++ binutils-fixed/binutils/ranlib.sh   2004-04-26 23:07:36.000000000 -0700
@@ -1,3 +1,3 @@
 #!/bin/sh
 # A simple ranlib script, to use less disk space than a ranlib program.
-ar s $1
+ar s "$1"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]