mgirod / clearcase-cpan

Automatically exported from code.google.com/p/clearcase-cpan
0 stars 0 forks source link

Double-quote returned in front of multiline output in fork mode #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

One-liner at the shell prompt, without ClearCase::Cmd installed:

$ perl -mClearCase::Argv -e
'ClearCase::Argv->ctcmd(1);$ct=ClearCase::Argv->new({autochomp=>1});$ct->argv(qw
(des
-fmt "a\nb\n" .))->system'
"a
b

What is the expected output? What do you see instead?

The expected output is what the ipc mode produces:

a
b

The '"' in front of the 'a' is spurious.

Please use labels and text to provide additional information.

The problem is actually in the underlying Argv.pm.

Original issue reported on code.google.com by marc.girod on 5 Sep 2008 at 8:42

GoogleCodeExporter commented 9 years ago
Reproduced directly using Argv:

$ perl -mArgv -e '$c=Argv->new();$c->argv(qw(cleartool des -fmt), q("a\nb\n"),
q(.))->system'
"a
b

Original comment by marc.girod on 5 Sep 2008 at 8:49

GoogleCodeExporter commented 9 years ago
This si a special case of issue 2, for which there was already a test case, 
commented
away in test.pl.

Original comment by marc.girod on 5 Sep 2008 at 9:15