Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: (WIN) copy and pasting from Perl-prints inside cmd.exe

by NetWallah (Canon)
on Mar 09, 2020 at 19:40 UTC ( [id://11114037]=note: print w/replies, xml ) Need Help??


in reply to Re^2: (WIN) copy and pasting from Perl-prints inside cmd.exe
in thread (WIN) copy and pasting from Perl-prints inside cmd.exe

FYI - on the same system - the same perl run from the powershell command line doe NOT introduce 150 spaces when copied.

So the extra space behaviour seems to be particular to Activestate perl and the windows 'cmd' prompt.

                "From there to here, from here to there, funny things are everywhere." -- Dr. Seuss

  • Comment on Re^3: (WIN) copy and pasting from Perl-prints inside cmd.exe

Replies are listed 'Best First'.
Re^4: (WIN) copy and pasting from Perl-prints inside cmd.exe
by LanX (Saint) on Mar 09, 2020 at 20:13 UTC
    Thanks again.

    I didn't have time to look into the code, but I seem to remember that different file handles are used for the prompt and for the eval.

    Could be that the cmd.exe is messing it up.

    Or Activestate patched something.

    Good that I asked here, because initially I was blaming emacs, which added more headache to the scenario. ..

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Re^4: (WIN) copy and pasting from Perl-prints inside cmd.exe
by LanX (Saint) on Mar 09, 2020 at 22:57 UTC
    > So the extra space behaviour seems to be particular to Activestate perl and the windows cmd prompt.

    I just tested to run GIT's Perl inside a cmd.exe instead of a GIT-bash and copying worked fine

    so it's rather the perl/debugger version conflicting with the cmd.exe

    > Git\usr\bin\perl.exe -de0 ... Loading DB routines from perl5db.pl version 1.51 ... DB<3> say for 1..3 1 2 3 DB<4> ... This is perl 5, version 26, subversion 2 (v5.26.2)

    and you're right Powershell doesn't have that problem ... (it's just tooo blue ;-)

    DB<1> say for 1..3 1 2 3 DB<2>

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (None)
    As of 2024-04-25 00:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found