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: Karl Berry
Subject: bug#10828: [RFC] POSIX will say running "rm -f" with no argument is OK
Date: Sat, 11 Dec 2021 14:52:12 -0700

Hi Mike, Peter,

     > or do we document that we expect `rm -f` to work, 

I don't see a reason to break working code wrt rm -f merely for cosmetic
purposes.
  test -z "$(VAR)" || rm -f $(VAR)
does not actually seem "awful" to me. And I fail to see any significant
gain by simplifying it.

Whatever POSIX says, we can be sure that reality differs.
Although systems that fail on "rm -f" are few and far between by now,
they are not nonexistent. So why break them?

My idea is to let the existing code stand (forever).

In the alternative, I agree with Peter that at least providing an
overridable variable would be desirable. --thanks, karl.





reply via email to

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