We are running a php client command. php xx yy zz run just fine but not its counter parts (/usr/bin/php and /bin/php) which give very weird error.
I am so confused row, given that :
command -v php || which php || type -p php
=> /usr/bin/php (( all 3 of them)
whereis php
=> php: /usr/bin/php /usr/bin/php7.3 /usr/lib/php /etc/php /usr/include/php /usr/share/php /usr/share/php7.3-xmlrpc /usr/share/php7.3-imap /usr/share/php7.3-opcache /usr/share/php7.3-zip /usr/share/php7.3-curl /usr/share/php7.3-common /usr/share/php7.3-bcmath /usr/share/php7.3-soap /usr/share/php7.2-xml /usr/share/php7.3-gd /usr/share/php7.3-mysql /usr/share/php7.3-mbstring /usr/share/php7.2-common /usr/share/php7.3-json /usr/share/php7.3-xml /usr/share/php7.3-readline /usr/share/man/man1/php.1.gz
type -a php
=> php is /usr/bin/php
php is /bin/php
Why my script works with "php" but /usr/bin/php or /bin/php. What are the different between them ?