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

Improve rsh arguments quoting #40

Merged
merged 1 commit into from Oct 15, 2020
Merged

Conversation

andreypopp
Copy link
Member

The problem: rsh passes through arguments to docker compose unquoted.
This makes it impossible to run commands like:

% rsh psql -c 'select 1'

The solution: switch to bash and use arrays to hold arguments.

The downside is that's less portable but hopefully portable enough...

The problem: rsh passes through arguments to docker compose unquoted.
This makes it impossible to run commands like:

    % rsh psql -c 'select 1'

The solution: switch to bash and use arrays to hold arguments.

The downside is that's less portable but hopefully portable enough...
Copy link
Contributor

@jayclassless jayclassless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a lot of system, bash and sh are practically synonyms, anyway.

@andreypopp andreypopp merged commit a5a5783 into baseline/master Oct 15, 2020
@andreypopp andreypopp deleted the baseline/rsh-quoting branch October 15, 2020 14:25
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

Successfully merging this pull request may close these issues.

None yet

3 participants