-
-
Notifications
You must be signed in to change notification settings - Fork 22
Update entrypoint for argument quoting #98
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
Conversation
Also, release memory from shell process. Signed-off-by: Elan Ruusamäe <[email protected]>
My bash-fu is weak, but would EDIT: the |
without
with exec the bash process is eliminated:
|
lmgtfy: |
Right, and if I pass in As for with/without |
You don't want or need the child process here. Child process is useful if there's code after the child process, but here it is not, child is the final runtime of the script (container). Simplified explanation: when using exec, instead of spawning a new child and monitoring its status in the main process, the main process is just replaced by the child. And in fact, bash doesn't even do proper monitoring that init process ought to do, therefore projects like https://github.com/krallin/tini are created. Do you want me to extract two changes to separate PRs or why this is still on hold? |
It's on hold because I don't understand the details, and not understanding the details means I won't merge it until I do, and am ready to maintain it afterwards: there's no need to be passive-aggressive about it.
Sounds like the best solution would be to get rid of
We still spawn |
what do you mean by "pass", where? you need to realize that where you type the command in has it's own quoting styles. Here's example from bash with my patch:
without my patch you would get:
|
none of that is related (read: nothing changes for them). |
Right, no need to bash wrapper at all, so here's the PR: |
Update entrypoint for argument quoting so that word splitting does not lose spaces in arguments.
Also, release memory from shell process. Besides releasing resources (memory), this is very important in docker containers so that signals get routed properly to PID=1.
Description