-
Notifications
You must be signed in to change notification settings - Fork 216
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
On Windows an Error Occurs When a --top-dir Option Contains Spaces #331
Comments
Huh. Might be an issue with IPC::System::Simple, though I don't see this limitation in its Windows notes. @pjf, any ideas? Sqitch invokes |
Although maybe |
Yes, it looked as though |
So, does this work for you?
If it doesn't, then it's psql's bug. |
Works for me. Psql version 9.6.3.
…On Thu, Jul 13, 2017 at 2:22 PM, David E. Wheeler ***@***.***> wrote:
So, does this work for you?
psql -f "C:\path\with some spaces/deploy/some_script.sql"
If it doesn't, then it's psql's bug.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#331 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMnDJ8p1FvezgCyOprh0K92lOsAQvnI5ks5sNm5-gaJpZM4NiUXw>
.
--
Larry North
Sr. Software Engineer
www.conserviscorp.com
[image:
https://ci4.googleusercontent.com/proxy/4zmY--G5c0z75FEYFgj1NlVuZbXK9P4CIxWsW0uRNZqWwzHi8jTsHd7US2q8YfxdggLoMJ5RM20uO0-zP-PgPJGXLnyCS38wuFcFvA=s0-d-e1-ft#http://www.conserviscorp.com/images/signature_logo.png]
<http://www.conserviscorp.com/>
|
Hrm. How about
If that works, try replacing |
runx does not work; problem with spaces.
Replacing runx with capturex yields:
Array found where operator expected at -e line 1, near "runx @argv"
(Do you need to predeclare runx?)
syntax error at -e line 1, near "runx @argv
"
Execution of -e aborted due to compilation errors.
…On Thu, Jul 13, 2017 at 3:34 PM, David E. Wheeler ***@***.***> wrote:
Hrm. How about
perl -MIPC::System::Simple=runx -e "runx @argv" psql -f "C:\path\with some spaces/deploy/some_script.sql"
If that works, try replacing runx with capturex.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#331 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMnDJ-9rKFBBBObH1RObBTN-P88vIP3pks5sNn8-gaJpZM4NiUXw>
.
--
Larry North
Sr. Software Engineer
www.conserviscorp.com
[image:
https://ci4.googleusercontent.com/proxy/4zmY--G5c0z75FEYFgj1NlVuZbXK9P4CIxWsW0uRNZqWwzHi8jTsHd7US2q8YfxdggLoMJ5RM20uO0-zP-PgPJGXLnyCS38wuFcFvA=s0-d-e1-ft#http://www.conserviscorp.com/images/signature_logo.png]
<http://www.conserviscorp.com/>
|
Interesting. Can you try with some other app, maybe a Windows standard app like Notepad or something?
|
There's indeed a chance this is an IPC::System::Simple issue, in which case yes, I should definitely be fixing it. :) Alas I don't have easy access to a Windows testing environment, so patches may be even more welcome than usual. :) |
The notepad test works. I know almost nothing about Perl, so I won't be
able to help with patches. I think Docker has Windows containers. Maybe
you could use that for a Windows testing environment.
…On Thu, Jul 13, 2017 at 11:35 PM, Paul Fenwick ***@***.***> wrote:
There's indeed a chance this is an IPC::System::Simple issue, in which
case yes, I should definitely be fixing it. :)
Alas I don't have easy access to a Windows testing environment, so patches
may be even more welcome than usual. :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#331 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMnDJ3muglTdGHliOORF85xnJ_Bp0-Rsks5sNvAjgaJpZM4NiUXw>
.
--
Larry North
Sr. Software Engineer
www.conserviscorp.com
[image:
https://ci4.googleusercontent.com/proxy/4zmY--G5c0z75FEYFgj1NlVuZbXK9P4CIxWsW0uRNZqWwzHi8jTsHd7US2q8YfxdggLoMJ5RM20uO0-zP-PgPJGXLnyCS38wuFcFvA=s0-d-e1-ft#http://www.conserviscorp.com/images/signature_logo.png]
<http://www.conserviscorp.com/>
|
Yeah, I have used the Free Windows VMs to do my Windows testing. Fire one up, use IE to download Strawberry Perl, install it and go. I'll open a bug in your issue tracker for now, @pjf. |
Curious that the Notepad example worked. Might be harder for @pjf to replicate then without installing Windows Postgres. There are installers, though. |
On Windows an error occurs when a
--top-dir
option contains spaces. The result is similar to this:The text was updated successfully, but these errors were encountered: