Skip to content

kitty's ssh file copy feature does not properly escape whitespace (and probably more) in flienames #5313

Closed
@con-f-use

Description

@con-f-use

Kitty's ssh file copy feature does not properly escape whitespace (and probably more) in flienames

  1. In Kitty, connect to a remote server via ssh
    image

  2. Try to "Save" a hyperlinked file with a space in its path
    image

image

  1. See it fail, because the command that gets execute (in this example ssh -o 'ControlPath=~/.ssh/kitty-master-717501-%r@%h:%p' -o TCPKeepAlive=yes -o ControlPersist=yes -o BatchMode=yes conserve cat '/tmp/space folder/iwanthis.txt') is improperly quoted. Should be something like ... cat "'/tmp/space folder/iwanthis.txt'".

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions