Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Handle CMD/ENTRYPOINT shell form #323

Merged
merged 4 commits into from
Apr 28, 2020

Conversation

Rowern
Copy link
Contributor

@Rowern Rowern commented Apr 23, 2020

This change the way splitArgs works for shell parsing, it handles some "special" characters.

I also added this to the CMD step as it should also use the shell form if it does not use the [] form.

It does work but I think this is kind of a bruteforce solution to make the splitArgs work for ENTRYPOINT and CMD. Maybe just implementing a string escaper for base.Args would be better... Tell me if you would prefer the escaper.

@ericmeadows

@Rowern Rowern force-pushed the better-shell-escape branch from e4ee172 to 678a809 Compare April 23, 2020 19:17
@Rowern Rowern changed the title Better shell escape Handle CMD/ENTRYPOINT shell form Apr 23, 2020
@yiranwang52
Copy link
Contributor

Thanks, this is a pretty hard problem.

@yiranwang52 yiranwang52 merged commit b267401 into uber-archive:master Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants