send-email: do not barf when Term::ReadLine does not like your terminal
commit280242d1cc1fe2847f649d2f16b273e168fcbc48
authorJunio C Hamano <junkio@cox.net>
Sun, 2 Jul 2006 23:03:59 +0000 (2 16:03 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 4 Jul 2006 02:04:46 +0000 (3 19:04 -0700)
tree47e86796d0b55bf8752d4bb3717d3035bf2a8877
parent624314fda7e7bd1107db7de4e877ee6285d7d6eb
send-email: do not barf when Term::ReadLine does not like your terminal

As long as we do not need to readline from the terminal, we
should not barf when starting up the program.  Without this
patch, t9001 test on Cygwin occasionally died with the following
error message:

Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS and LINES environment variables didn't work. The resize program didn't work. at /usr/lib/perl5/vendor_perl/5.8/cygwin/Term/ReadKey.pm line 362.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8/Term/ReadLine/Perl.pm line 58.

Acked-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl
t/t9001-send-email.sh