Open mrcasual opened 3 years ago
Use case: docker run --rm alterway/php:7.4-cli "/path with spaces/to/phpunit.phar"
docker run --rm alterway/php:7.4-cli "/path with spaces/to/phpunit.phar"
The command will fail due to word splitting that happens in entrypoint.sh when parameters are expanded:
entrypoint.sh
[...] if [[ ! -z "$1" ]]; then exec php ${*} else exec php -h fi
Changing php ${*} to php "${@}" fixes the issue.
php ${*}
php "${@}"
Use case:
docker run --rm alterway/php:7.4-cli "/path with spaces/to/phpunit.phar"
The command will fail due to word splitting that happens in
entrypoint.sh
when parameters are expanded:Changing
php ${*}
tophp "${@}"
fixes the issue.