Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
To: buildroot@busybox.net
Subject: [Buildroot] usage of '-rm -f ...' in .mk files
Date: Tue, 9 Oct 2007 00:28:36 +0200 (CEST)	[thread overview]
Message-ID: <0710090011020.20512@somehost> (raw)

Is there a point (I'm missing) with that?  The rm manpage on my box
states:

       -f, --force
              ignore nonexistent files, never prompt

Shouldn't every occurence of '-rm -f' be replaced with just 'rm -f'?
Even files with permission 000 (owned by me) can be removed with 'rm -f'
with the exit status 0.  Of course one should not be able to remove files
owned by someone else (unless permission is given to so) and an error
status should be produced.

Isn't it so that we want to know if an attempt to remove unremovable files
occurs, instead of ignoring errors by using '-rm -f'?


Cheers,

-- 
Cristian

             reply	other threads:[~2007-10-08 22:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 22:28 Cristian Ionescu-Idbohrn [this message]
2007-10-09  0:03 ` [Buildroot] usage of '-rm -f ...' in .mk files Alexander Kriegisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0710090011020.20512@somehost \
    --to=cristian.ionescu-idbohrn@axis.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox