summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorChip Salzenberg <chip@perl.com>1997-02-01 00:23:07 +1200
committerChip Salzenberg <chip@atlantic.net>1997-02-04 17:47:00 +1200
commit05dd7c1e711be95be417c5a7f4a8d83e9ea29035 (patch)
treeae1a22db5148eb164e837e8c0b740b8b5f0d82cc /installperl
parent24fef2a7cd8a0fa32e8f3397b46c72d088f692bc (diff)
downloadperl-05dd7c1e711be95be417c5a7f4a8d83e9ea29035.tar.gz
Ask about /usr/bin/perl iff STDIN and STDERR are terminals
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl3
1 files changed, 2 insertions, 1 deletions
diff --git a/installperl b/installperl
index bbcd1c383a..d4cb71185a 100755
--- a/installperl
+++ b/installperl
@@ -179,7 +179,8 @@ foreach $file (@corefiles) {
$mainperl_is_instperl = 0;
-if (-w $mainperldir && ! &samepath($mainperldir, $installbin) && !$nonono) {
+if (!$nonono && -t STDIN && -t STDERR
+ && -w $mainperldir && ! &samepath($mainperldir, $installbin)) {
local($usrbinperl) = "$mainperldir/perl$exe_ext";
local($instperl) = "$installbin/perl$exe_ext";
local($expinstperl) = "$binexp/perl$exe_ext";