Skip Menu |

This queue is for tickets about the ClearCase-Argv CPAN distribution.

Report information
The Basics
Id: 104260
Status: new
Priority: 0/
Queue: ClearCase-Argv

People
Owner: Nobody in particular
Requestors: YChevallier [...] etel.ch
Cc:
AdminCc:

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



Subject: Bad quoting for comments
Date: Wed, 6 May 2015 09:34:51 +0000
To: "bug-ClearCase-Argv [...] rt.cpan.org" <bug-ClearCase-Argv [...] rt.cpan.org>
From: Chevallier Yves <YChevallier [...] etel.ch>
With this code I get an error on cleartool because of my comment: $cc->co('path')->comment('Renamed files .def -> .inc')->system; ClearCase::Argv calls the main Argv quote method: ClearCase::Argv@821: sub quote { my $self = shift; # Don't quote the 2nd word where @_ = ('cleartool', 'pwv -s'); return @_ if @_ == 2; return $self->SUPER::quote(@_) if @_ > 2; Which does this thing: Argv.pm@592: # Special case - leave things that look like redirections alone. next if /^\d?(?:<{1,2})|(?:>{1,2})/; So the comment is considered as an argument that looks like a redirection and it is not properly quoted. I am running on Windows/Cygwin with the latest version of ClearCase::Argv