in reply to Re^8: Cpan install gets stuck installing Net OpenSSH ?
in thread Cpan install gets stuck installing Net OpenSSH ?
This is the result:sub try_shell { my $shell = shift; print "line 1\n"; my $out = eval { capture($shell, '-c', 'echo good') }; print "line 2\n"; if ($out and $out =~ /^good$/) { print "line 3\n"; if ($shell =~ /ksh/) { print "line 4\n"; if (defined (my $version = eval { `$shell --version 2>&1` +})) { print "line 5\n"; if ($version =~ /version\s+sh\s+\(AT\&T\s+Research\)/) + { diag "skipping tests for broken AT&T ksh shell!"; return undef; } } } print "line 6\n"; if ($shell eq '!!fish') { diag "TODO: add support for fish shell!"; return undef; } return 1; } return undef; }
I think it makes it through the first 4 shells then gets stuck on the 5th. I think ksh is the 5th one based on the line that calls the sub:-bash-3.2$ sudo perl -Mblib t/quoting.t line 1 line 2 line 3 line 6 line 1 line 2 line 3 line 6 line 1 line 2 line 3 line 6 line 1 line 2 line 3 line 6 line 1 line 2 line 3 line 4 ^C
my @shells = grep try_shell($_), qw(sh csh bash tcsh ksh dash ash pdks +h mksh zsh fish);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Cpan install gets stuck installing Net OpenSSH ?
by salva (Canon) on Mar 15, 2016 at 18:25 UTC | |
by jtzako (Sexton) on Mar 15, 2016 at 18:35 UTC | |
by jtzako (Sexton) on Mar 15, 2016 at 22:07 UTC | |
by salva (Canon) on Mar 15, 2016 at 22:39 UTC | |
by jtzako (Sexton) on Mar 16, 2016 at 00:09 UTC | |
by salva (Canon) on Mar 16, 2016 at 15:24 UTC | |
|