Skip to content

Quoting for the terminal command #96

@junkmechanic

Description

@junkmechanic

Hi,

I first noticed this with -snow. Choosing a host would give me the following error.

Usage: x-terminal-emulator [options]
x-terminal-emulator: error: Additional unexpected arguments found: [<hostname>]

Nothing wrong with the call in execshssh (line 59 in ssh-dialog.c) or the config.c ssh_command definition. Unless you happen to have terminator as your default x-terminal-emulator, which I do. So the fix for me was to quote the command run.
In config,c

    .ssh_command       = "{terminal} -e '{ssh-client} {host}'",

This does not affect xterm and hence should be safe but I might not know better. If you can check that, you might want to update it.

However, I still cant run anthing that uses "run_shell_command" . I have tried with/out quotes. Selecting the option seems to send the program in the background (if run from the terminal).

I am on Debian Wheezy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions