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

Console command paths cannot be specified correctly with backslashes #8912

Closed
Derek701 opened this issue Oct 11, 2016 · 1 comment
Closed

Comments

@Derek701
Copy link
Contributor

Derek701 commented Oct 11, 2016

Bitcoin Core v0.13.0 on Windows 10 (using Debug window console in GUI)

Console commands with filename arguments cause unexpected behavior when using Windows-style backslashes in paths. For example, dumpwallet D:\Bitcoin\test.txt creates D:\Bitcointest.txt. Replacing backslashes with slashes, dumpwallet D:/Bitcoin/test.txt creates D:\Bitcoin\test.txt.

The unexpected result is more confusing because dumpwallet does not print the path/filename of the created file to the console (only a blank line).

At least a note for Windows users to specify paths with slashes in the help text would be nice. Also, the help text for dumpwallet and importwallet does not indicate that the filename argument requires a full path to work correctly in the console (i.e., there's no default working directory).

@Derek701 Derek701 changed the title Console command paths cannot be specified correctly with backslashes (Windows) Console command paths cannot be specified correctly with backslashes Oct 11, 2016
@laanwj
Copy link
Member

laanwj commented Nov 21, 2016

The debug console has a minimal sh-like parser. You can actually use backslashes, but you need to escape them or surround with quotes (preferably single quotes, because there \ will never be interpreted as an escape sequence). E.g. either

dumpwallet d:\\Bitcoin\\test.txt
dumpwallet 'D:\Bitcoin\test.txt'

Closing in favor of #9195 which is a more general issue for tracking RPC console documentation.

@laanwj laanwj closed this as completed Nov 21, 2016
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants