autoconf
[Top][All Lists]
Advanced

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

use of "rm" command.


From: David Relson
Subject: use of "rm" command.
Date: Sat, 3 Jan 2004 12:57:33 -0500

Greetings and Happy New Year,

Looking at the generated configure script, I notice that almost all
occurrences of the "rm" command use either the "-f" or "-rf" options. 
In one case only is "rm" used without options and that's in
autoconf/general.m4 in the following code snippet:

cat <<\_ACEOF >conftest.sed
[s/[\\$]/&&/g;s/;s,x,x,$//]
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f
conftest.sed`
rm conftest.sed

Is there a particular reason for no options?  The reason I ask is
two-fold.  First, a bogofilter builder on OpenBSD-3.1 has encountered an
unexpected query while running configure:

   override rw-r--r--  user/group conftest.sed?

Secondly, since there's _only_ the one usage without options, it seems
anomalous.

FWIW, the following patch corrects the problem:

--- general.m4.orig     2003-12-20 09:00:01.000000000 -0500
+++ general.m4  2004-01-02 18:01:35.000000000 -0500
@@ -1474,7 +1474,7 @@
 [s/[\\$]/&&/g;s/;s,x,x,$//]
 _ACEOF
 program_transform_name=`echo $program_transform_name | sed -f
conftest.sed`
-rm conftest.sed
+rm -f conftest.sed
 ])# AC_ARG_PROGRAM
 
 
Cheers!

David

-- 
David Relson                   Osage Software Systems, Inc.
address@hidden       Ann Arbor, MI 48103
www.osagesoftware.com          tel:  734.821.8800




reply via email to

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