New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor bug in cpan -- the i command does not find author #7221
Comments
From Steve.Tolkin@fmr.comCreated by steve.tolkin@fmr.comIn the cpan shell help says that the command I do not know whether the fix is to change the description of i, C:\TEMP>perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.7601) cpan> help Display Information Download, Test, Make, Install... Other cpan> a stolkin cpan> Perl Info
|
From @schwern
It does find authors, but unlike "a", "i" does not automatically upcase cpan> i MSCHWERN cpan> i mschwern The attached patch makes "i" upcase its argument when its searching for PS That "Strange distribution name" warning is part of a sanity check But that's for another bug. |
From @schwernCPAN.pm.patch--- lib/CPAN.pm 2005/07/12 06:32:29 1.5
+++ lib/CPAN.pm 2005/07/12 07:09:18
@@ -1484,12 +1484,14 @@
my($self) = shift;
my(@args) = @_;
my(@type,$type,@m);
- @type = qw/Author Bundle Distribution Module/;
@args = '/./' unless @args;
my(@result);
- for $type (@type) {
+ for $type (qw/Bundle Distribution Module/) {
push @result, $self->expand($type,@args);
}
+ # Authors are always uppercase.
+ push @result, $self->expand("Author", map { uc $_ } @args);
+
my $result = @result == 1 ?
$result[0]->as_string :
@result == 0 ?
|
The RT System itself - Status changed from 'new' to 'open' |
From @schwernForgot to CC p5p with my patch. Pumpkings and pumpkinglets, there's a |
From Steve.Tolkin@fmr.comThank you for providing the patch. Steve -----Original Message-----
It does find authors, but unlike "a", "i" does not automatically upcase cpan> i MSCHWERN cpan> i mschwern The attached patch makes "i" upcase its argument when its searching for PS That "Strange distribution name" warning is part of a sanity check But that's for another bug. |
From @schwernOn Tue, Jul 12, 2005 at 07:14:06AM -0400, Tolkin, Steve wrote:
Somebody will come along and say "thanks, applied" which means its in the And hopefully this will make it into the CPAN version of CPAN.pm. -- |
From @steve-m-hayMichael G Schwern via RT wrote:
Thanks. Applied as change 25133. Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email. |
From @steve-m-hayNow fixed in bleadperl so should be in 5.8.8, otherwise 5.10. (And I'll email CPAN.pm's maintainer to let him know of this fix (and |
@steve-m-hay - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#28385 (status was 'resolved')
Searchable as RT28385$
The text was updated successfully, but these errors were encountered: