Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runx Sometimes Fails to Pass Paths with Spaces In Them on Windows #24

Open
theory opened this issue Jul 14, 2017 · 10 comments
Open

runx Sometimes Fails to Pass Paths with Spaces In Them on Windows #24

theory opened this issue Jul 14, 2017 · 10 comments

Comments

@theory
Copy link
Contributor

theory commented Jul 14, 2017

As originally reported in /sqitchers/sqitch#331. Note that the OP, @NorthLarry, found that passing a path with a space to psql failed, but not when passing it to notepad. Both work fine on the command-line, of course.

Tests:

perl -MIPC::System::Simple=runx -e "runx @ARGV" psql -f "C:\path\with some spaces/deploy/some_script.sql"
perl -MIPC::System::Simple=runx -e "runx @ARGV" notepad "C:\path\with some spaces/deploy/some_script.sql"
@theory theory changed the title runx Sometimes Fails to Pass Paths with Spaces In Them runx Sometimes Fails to Pass Paths with Spaces In Them on Windows Jul 14, 2017
@autarch
Copy link

autarch commented Jul 31, 2017

Dupe of #22 and several others, I think.

Basically the docs lie completely about the actual behavior on Windows. It always invokes a shell there, regardless of what sub you call or how you pass your args.

@theory
Copy link
Contributor Author

theory commented Jul 31, 2017

Would be good, then, if the Windows code properly escaped/quoted args before shelling, to prevent shell interpretation.

@autarch
Copy link

autarch commented Jul 31, 2017

Yeah, I agree. I just encountered this issue myself.

@jkeenan
Copy link
Collaborator

jkeenan commented Jan 24, 2020

Is this the same problem as was described in https://rt.cpan.org/Ticket/Display.html?id=52380?

@autarch
Copy link

autarch commented Jan 24, 2020

@jkeenan yes, I think so.

@jkeenan
Copy link
Collaborator

jkeenan commented Mar 24, 2020

I believe that this issue may be resolved in IPC-System-Simple version 1.30, just released to CPAN. Can you confirm?

Thank you very much.
Jim Keenan

@autarch
Copy link

autarch commented Mar 24, 2020

I wish I remembered what I was doing when I encountered this. But I think it's a fairly simple test. Try to call an executable with a path containing spaces and pass it arguments.

@jkeenan
Copy link
Collaborator

jkeenan commented Mar 24, 2020 via email

@autarch
Copy link

autarch commented May 1, 2020

Ok, I can confirm that this appears to be fixed.

@jkeenan
Copy link
Collaborator

jkeenan commented May 1, 2020

Ok, I can confirm that this appears to be fixed.

Thanks, Dave. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants