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

Executing a file with a relative path on Windows is broken #22

Closed
angrybrad opened this issue Feb 9, 2017 · 5 comments · Fixed by #23
Closed

Executing a file with a relative path on Windows is broken #22

angrybrad opened this issue Feb 9, 2017 · 5 comments · Fixed by #23

Comments

@angrybrad
Copy link
Contributor

angrybrad commented Feb 9, 2017

If I pass in a relative path on Windows to execute (assuming what I want to execute is already in the working directory or in my PATH environment variable), it produces incorrect output.

For example:

mysqldump --defaults-extra-file=C:\temp\my.cnf --add-drop-table --comments --create-options --dump-date --no-autocommit --routines --set-charset --triggers --result-file=C:\temp\backup.sql testdatabase

Will produce:

cd "mysqldump --defaults-extra-file=C:\temp\my.cnf --add-drop-table --comments --create-options --dump-date --no-autocommit --routines --set-charset --triggers --result-file=C:\temp" && backup.sql testdatabase

It looks like d9a0e8e is really only a fix for absolute paths.

@angrybrad
Copy link
Contributor Author

angrybrad commented Feb 9, 2017

Related pull request: #23

@angrybrad
Copy link
Contributor Author

Thoughts on this one?

@mikehaertl
Copy link
Owner

@takobell Ouch, I'm sorry. I was confused about the new "Start a review" feature on Github and just found out, that I had to submit my comments first before you can see it. It was lingering there for month.

@angrybrad
Copy link
Contributor Author

@mikehaertl No worries... still getting used to the new review tools myself.

@mikehaertl
Copy link
Owner

Just release 1.2.5 containing your fix. Thanks for your help!

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

Successfully merging a pull request may close this issue.

2 participants