The command is: nginx -g daemon off
My current shell:
root@aws:~# echo $0
bash
root@aws:~# nginx -g daemon off
nginx: invalid option: "off"
root@aws:~# bash -c nginx -g daemon off
root@aws:~#
Note:
If I use double quotes across daemon off so that it will represent one word it will work: nginx -g "daemon off;"
The question arises: If my shell is bash, why then is there an execution difference between not specifying bash -c and explicitly specifying it?