git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 4/4] Add a basic test case for git send-email, and fix some real bugs discovered.

From
CFChristopher Faylor <me@cgf.cx>
Date
May 30, 2006, 15:21 UTC
Message-ID
<20060530152103.GB8931@trixie.casa.cgf.cx>
In-Reply-To
<81b0412b0605300623h4f915829yb388c8fdc062c009@mail.gmail.com>
On Tue, May 30, 2006 at 03:23:30PM +0200, Alex Riesen wrote:
Show 24 quoted lines
>>--- a/git-send-email.perl
>>+++ b/git-send-email.perl
>>@@ -387,7 +387,9 @@ X-Mailer: git-send-email $gitversion
>>                my $pid = open my $sm, '|-';
>>                defined $pid or die $!;
>>                if (!$pid) {
>>-                       exec($smtp_server,'-i',@recipients) or die $!;
>
>This construction (perl pipe+fork) will not work on ActiveState Perl
>(it does not even parse the construct).
>Last time the problem arised it was suggested to replace readers
>with "qx{command}". Regretfully there were no writer case back
>then. I'd suggest using IPC::Open2 for portability. Like this:
>
> use IPC::Open2;
> my $fw;
> my $pid = open2(">&1", $fw, "perl", "-w");
> print $fw "exit 0\n";
> close($fw);'
>
>But I wont. It was never portable in windows, no matter how hard
>I tried. The best result was getting output from "cat -v", but "cat"
>froze afterwards anyway, as "wc" or "perl" did. Besides, it the
>command often freezes that poor imitation of xterm windows has.

I assume that "the poor imitation of xterm" is referring to cygwin's xterm here. It's really too bad that you can't get into the mindset of reporting problems to the cygwin mailing list when you notice them.

I can't comment on the proposed patch since, AFAIK, using cat, wc, and (cygwin's) perl should all work just fine but I don't think it is ever correct to complain about a platform in released software.

cgf
Show 17 quoted lines
>---
> t/t9001-send-email.sh |    7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
>diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
>index a61da1e..c3a3737 100755
>--- a/t/t9001-send-email.sh
>+++ b/t/t9001-send-email.sh
>@@ -25,6 +25,11 @@ test_expect_success \
>      git add fake.sendmail
>      GIT_AUTHOR_NAME="A" git commit -a -m "Second."'
> 
>+if test "$(uname -o)" = Cygwin; then
>+    say "git-send-mail tests disabled on Windows"
>+    # because of windows being such a crap
>+else
>+
Previous: Alex RiesenNext: Alex Riesen
Message 5 of 10 in “Re: [PATCH 4/4] Add a basic test case for git send-email, and fix some real bugs discovered.”
  1. Junio C HamanoMay 30, 2006
  2. Junio C HamanoMay 30, 2006
  3. Junio C HamanoMay 30, 2006
  4. Alex RiesenMay 30, 2006
  5. Christopher FaylorMay 30, 2006
  6. Alex RiesenMay 30, 2006
  7. Christopher FaylorMay 30, 2006
  8. Ryan AndersonMay 30, 2006
  9. Alex RiesenMay 30, 2006
  10. Ryan AndersonMay 30, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.