In this simple Docker wrapper script example, how may one correctly pass a current working directory path which contains spaces?
问题 My Docker wrapper script works as intended when the current working directory does not contain spaces, however there is a bug when it does. I have simplified an example to make use of the smallest official Docker image I could find and a well known GNU core utility. Of course this example is not very useful. In my real world use case, a much more complicated environment is packaged. Docker Wrapper Script: #!/usr/bin/env bash ## ## Dockerized ls ## set -eux # Only allocate tty if one is