From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/3] rebase -i: several cleanups
Date: Tue, 26 Jun 2007 18:57:51 -0700 [thread overview]
Message-ID: <7vodj2tazk.fsf@assigned-by-dhcp.pobox.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0706270216070.4438@racer.site> (Johannes Schindelin's message of "Wed, 27 Jun 2007 02:17:08 +0100 (BST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> > +die_abort () {
>> > + rm -rf "$DOTEST" 2> /dev/null
>> > + die "$1"
>> > +}
>>
>> Why "2>/dev/null" here?
>
> Just to be sure. If it does not exist, it's no error. No sense alarming
> the user.
Yeah, but isn't that exactly why you have "-f" there? On the
other hand, if $DOTEST exists but for some reason couldn't be
removed, we probably would want to know about it.
$ rm -fr no-such
$ mkdir no-such
$ echo >no-such/file
$ rm -fr no-such
$ mkdir no-such
$ echo >no-such/file
$ chmod a-w no-such
$ rm -fr no-such
rm: cannot remove `no-such/file': Permission denied
next prev parent reply other threads:[~2007-06-27 2:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-25 17:56 [PATCH 1/3] rebase -i: several cleanups Johannes Schindelin
2007-06-27 1:09 ` Junio C Hamano
2007-06-27 1:17 ` Johannes Schindelin
2007-06-27 1:57 ` Junio C Hamano [this message]
2007-06-27 10:33 ` Johannes Schindelin
2007-06-27 2:00 ` Junio C Hamano
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=7vodj2tazk.fsf@assigned-by-dhcp.pobox.com \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/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