From: Jeff King <peff@peff.net>
To: "Philippe Bruhat (BooK)" <book@cpan.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Git.pm: better error message
Date: Mon, 14 Jun 2010 03:10:46 -0400 [thread overview]
Message-ID: <20100614071046.GA5639@sigill.intra.peff.net> (raw)
In-Reply-To: <1276477222-21465-1-git-send-email-book@cpan.org>
On Mon, Jun 14, 2010 at 03:00:22AM +0200, Philippe Bruhat (BooK) wrote:
> -d doesn't set $! if the directory doesn't exist
Really?
$ perl -e '-d "bogus" or die "fail: $!"'
fail: No such file or directory at -e line 1.
On the other hand:
$ touch file
perl -e '-d "file" or die "fail: $!"'
fail: at -e line 1.
So perhaps it is best not to rely on $!. Also, this is with perl 5.10.
Is it different with other versions?
-Peff
next prev parent reply other threads:[~2010-06-14 7:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 1:00 [PATCH] Git.pm: better error message Philippe Bruhat (BooK)
2010-06-14 7:10 ` Jeff King [this message]
2010-06-14 9:19 ` Philippe Bruhat (BooK)
2010-06-14 9:20 ` Jeff King
2010-06-17 23:47 ` Philippe Bruhat (BooK)
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=20100614071046.GA5639@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=book@cpan.org \
--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;
as well as URLs for NNTP newsgroup(s).