Update: Fixed.
Good day fellow Monks,
I'm trying to fix an issue with berrybrew in that when a user wants it to manage Perl's .pl file extension, the user is required to hit ENTER twice to get the output displayed to the screen when running a script from the CLI.
I thought I had the problem resolved on one system, but it exhibits the undesired behaviour on a second one. I'm wondering if a kind monk who's got access to Windows systems can test it out for me.
Repro steps:
- Download and extract a portable version of Strawberry Perl
- Open a command prompt with elevated privileges
- Fetch and write down the existing .pl file association, if applicable: assoc .pl
- Set a temporary file association: assoc .pl=tempPerl
- Set the association's command: (where 'path' is the absolute path to the top level directory of your portable strawberry instance): ftype tempPerl="C:\path\perl\bin\perl.exe" "%1" %*
- Create a test script somewhere, say the desktop: use warnings; use strict; print "hello, world!\n";
- Exit the command prompt, open a new one (doesn't need to be admin this time)
- Run the script *without* explicitly specifying the interpreter: C:\Users\steveb\test.pl
Desired outcome: That the words "hello, world!" will be displayed in the console without having to hit ENTER more than once.
When you are said and done testing, and you did in fact have an association set up previously, simply run assoc .pl=whatever_you_wrote_down to revert your system back to original configuration.
I don't know if it's the VM I'm working on is messed up somehow due to development work or not, which is why I'm hoping someone else can test for me. Both of my machines are the exact same version of Win10.
Thanks for any of those who can help me out.
Cheers,
-stevieb
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.