I actually have a problem when I try to execute a command in my shell script to start my docker container.I'm running :docker-compose upThe command works well but before being executed and seeing the log output, it display the help command like if I only randocker-composeThe fact is that I don't want to mute the function log using >/dev/null because I need to see the log.I tried, using eval, exec, assign a cast string of the command to a variable...Unfortunately docker-compose is not an alias. I'm getting the problem not only with docker-compose but also others clis or global installed npm-packages like pm2Any idea to solve this ?
Shell script - command always display usage before executing
shell;command;exec