Skip to contentSkip to conversation

PATCH: Use rm -f instead of rm

PATCH H. J. Lu 2 participants 2 messages Aug 6, 2003

lore
Share & tools
lore

H. J. Lu

author
#0 lore raw

"rm" may be aliased to "rm -i".

# make

may prompt for user response. It kills "nohup make".

H.J.

arch/ia64/Makefile renamed from arch/ia64/Makefile.ia64 +1 -1
@@ -28,7 +28,7 @@ CHECK_GAS_FOR_HINT=arch/ia64/scripts/che
 MAKE_GAS_HINT_TEST=arch/ia64/scripts/make_gas_hint_test
 
 ifneq (, $(shell ls $(CHECK_GAS_FOR_HINT)))
-$(shell rm $(CHECK_GAS_FOR_HINT))
+$(shell rm -f $(CHECK_GAS_FOR_HINT))
 endif
 
 CHECK_GAS_CMD:=($(CC) $(MAKE_GAS_HINT_TEST).c -o $(MAKE_GAS_HINT_TEST) |$(AS) -o $(CHECK_GAS_FOR_HINT) -;rm $(MAKE_GAS_HINT_TEST))>&/dev/null
#1 lore raw

"H. J. Lu" <[email protected]> writes:

|> "rm" may be aliased to "rm -i".

A non-interactive shell has no business of expanding aliases.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."