bug-automake
[Top][All Lists]
Advanced

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

bug#10828: [RFC] POSIX will say running "rm -f" with no argument is OK


From: Mike Frysinger
Subject: bug#10828: [RFC] POSIX will say running "rm -f" with no argument is OK
Date: Mon, 13 Dec 2021 21:04:49 -0500

On 11 Dec 2021 23:19, Moritz Klammler wrote:
> An alternative trick which I have used in my code and found much less 
> disturbing is to prepend an arbitrary, hopefully non-existent, file name 
> so the list of arguments will never be empty even if the variable is.
> 
> rm -f NOTFOUND $(VAR)

i think this is an interesting route.  we could do:
        rm -f $(am__rm_f_notfound) ...
and am__rm_f_notfound could be set based on the configure test.
        am__rm_f_notfound = WORKAROUND_RM_F_BUG
that way most people won't see any noise.
-mike

Attachment: signature.asc
Description: PGP signature


reply via email to

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