stevieb has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: File association on Windows
by stevieb (Canon) on Jan 19, 2021 at 08:55 UTC | |
by Discipulus (Canon) on Jan 19, 2021 at 11:07 UTC | |
by stevieb (Canon) on Jan 19, 2021 at 13:41 UTC | |
by stevieb (Canon) on Jan 19, 2021 at 15:48 UTC | |
by Discipulus (Canon) on Jan 20, 2021 at 07:41 UTC | |
Re: File association on Windows
by Anonymous Monk on Jan 18, 2021 at 23:35 UTC | |
by stevieb (Canon) on Jan 18, 2021 at 23:42 UTC |