in reply to Re^2: redirection problem
in thread redirection problem

the output is exactly the same as yours.

Really? You are using a 64-bit perl? Are you sure the quoting of the arguments is exactly the same?

How about:

C:\test>set pathext PATHEXT=.pl;.COM;.EXE;.BAT;.CMD;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^4: redirection problem
by grizzley (Chaplain) on Jun 22, 2012 at 09:40 UTC

    It was little different, but changing this var didn't help:

    c:\>set pathext PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw c:\>set pathext=.pl;%pathext% c:\>set pathext PATHEXT=.pl;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py; +.pyw c:\>script.pl > noperl.txt c:\>type noperl.txt

      Are you sure that the output from ftype is: Perl="c:\perl64\bin\perl.exe" "%1" %*

      And not (say): Perl="c:\perl64\bin\perl.exe %1 %*" ?

      Because the only way I can (partially) reproduce your description is to change my ftype to the latter.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        Yes, it is the first one. I installed strawberry perl 5.12, changed registry to point at it and this one worked:
        C:\temp>ftype Perl Perl="C:\strawberry\perl\bin\perl.exe" "%1" %* C:\temp>script.pl aabc C:\temp>script.pl > strawberry.txt C:\temp>type strawberry.txt aabc
        I'll try to install AS 5.12 to see how it works (on Monday).