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

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?

Replies are listed 'Best First'.
Re^6: redirection problem
by grizzley (Chaplain) on Jun 22, 2012 at 15:19 UTC
    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).

      Try removing the assoc and ftype prior to doing the installation.


      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?

        It didn't help either. I've installed Strawberry once again and no progress. Then uninstalled and installed AS 5.12.4 32-bit, but no success either. But... started digging and after finding similar posts for Groovy and Python I followed one of the links. This is actually very old fix for Win2000, but adding mentioned InheritConsoleHandles registry key solved my problem.