Skip to content

String literal treated as command after semicolon #288

@dsankouski

Description

@dsankouski

Mainframer command mainframer.sh 'echo "blabla;blabla"' returns bash: line 1: blabla: command not found error. This error comes from local interpreter. If I switch quotes like mainframer.sh "echo 'blabla;blabla'", then remote shell complains:

set -e && cd ~/mainframer/dir && echo "echo blabla
zsh:1: command not found: blabla" && echo  && echo blabla
zsh:1: command not found: blabla

Full log:

$ mainframer.sh 'echo "blabla;blabla"'
:: mainframer v2.1.0

Sync local → remote machine...
Sync done: took 3 seconds.

Executing command on remote machine…

echo blabla
bash: line 1: blabla: command not found

Execution failed: took 0 seconds.

Sync remote → local machine…
Sync done: took 5 seconds.

Failure: took 8 seconds.

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