Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String literal treated as command after semicolon #288

Open
dsankouski opened this issue Oct 18, 2023 · 0 comments
Open

String literal treated as command after semicolon #288

dsankouski opened this issue Oct 18, 2023 · 0 comments

Comments

@dsankouski
Copy link

dsankouski commented Oct 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant