Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 84875
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: andrew.pennebaker [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cpan shebang incompatible with Git Bash
The shebang supplied with starberryperl/bin/cpan doesn't work with Git Bash: $ head `which cpan` #!/usr/local/bin/perl use 5.006; use strict; use vars qw($VERSION); use App::Cpan; $VERSION = '1.5902'; my $rc = App::Cpan->run( @ARGV ); $ cpan bash.exe: /c/strawberry/perl/bin/cpan: /usr/local/bin/perl: bad interpreter: No such file or directory Correcting the shebang to "#!/usr/bin/env perl" fixes this problem. $ cpan cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help. System: $ specs perl bash git os Specs: specs 0.4 https://github.com/mcandre/specs#readme ppm --version Unknown or ambiguous command '--version'; type 'help' for commands. cpan --version c:\strawberry\perl\bin/cpan version 1.5902 calling Getopt::Std::getopts (version 1.07 [paranoid]), running under Perl version 5.16.2. [Now continuing due to backward compatibility and excessive paranoia. See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.] Nothing to install! perl --version This is perl 5, version 16, subversion 2 (v5.16.2) built for MSWin32-x86-multi-thread Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. bash --version GNU bash, version 3.1.0(1)-release (i686-pc-msys) Copyright (C) 2005 Free Software Foundation, Inc. git --version git version 1.8.0.msysgit.0 systeminfo | findstr /B /C:"OS Name" /C:"OS Version" OS Name: Microsoft Windows XP Professional OS Version: 5.1.2600 Service Pack 3 Build 2600
Subject: Re: [rt.cpan.org #84875] cpan shebang incompatible with Git Bash
Date: Sat, 27 Apr 2013 12:04:49 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
What strawberry perl version do you use? you can check it by: perl -V:myuname It should be IMO fixed in 5.16.2.2 Please have a look at https://rt.cpan.org/Public/Bug/Display.html?id=82837 -- kmx