Skip to content

Support quoted keypair paths with spaces in more commands (follow-up to #10626) #10827

@Shiven0504

Description

@Shiven0504

Follow-up to #10626: parse_signer_source rejects valid keypair file paths containing spaces

Even with quotes in shell, some CLI commands (e.g. solana transfer --keypair "C:\My Folder\id.json") fail parsing.

My Proposals -

  • Update CliSigners / DefaultSigner to trim/ handle quoted paths more robustly.
  • Or add shell escaping note in error message.
  • Test case: Add unit test for path with space.

Happy to attempt a PR if maintainers confirm the direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions