Console command paths cannot be specified correctly with backslashes #8912

issue Derek701 opened this issue on October 11, 2016
  1. Derek701 commented at 7:06 PM on October 11, 2016: contributor

    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).

  2. MarcoFalke added the label Windows on Oct 11, 2016
  3. MarcoFalke added the label RPC/REST/ZMQ on Oct 11, 2016
  4. Derek701 renamed this:
    Console command paths cannot be specified correctly with backslashes (Windows)
    Console command paths cannot be specified correctly with backslashes
    on Oct 11, 2016
  5. laanwj commented at 9:40 AM on November 21, 2016: member

    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.

  6. laanwj closed this on Nov 21, 2016

  7. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me