M. J. T. Guy [Sat, 22 Jul 2000 14:02:11 +0000 (15:02 +0100)]
Subject: [PATCH] Re: [ID
20000721.003] installperl stderr/stdout problem
Message-Id: <E13Fyux-0003Q2-00@libra.cus.cam.ac.uk>
p4raw-id: //depot/perl@6421
my $mainperl_is_instperl = 0;
-if ($Config{installusrbinperl} eq 'define' &&
+if ($Config{installusrbinperl} && $Config{installusrbinperl} eq 'define' &&
!$versiononly && !$nonono && !$Is_W32 && !$Is_VMS && -t STDIN && -t STDERR
&& -w $mainperldir && ! samepath($mainperldir, $installbin)) {
my($usrbinperl) = "$mainperldir/$perl$exe_ext";
my($prompt) = @_;
my($answer);
my($default) = $prompt =~ m/\[([yn])\]\s*$/i;
- print $prompt;
+ print STDERR $prompt;
chop($answer = <STDIN>);
$answer = $default if $answer =~ m/^\s*$/;
($answer =~ m/^[yY]/);