Bash arobase for line break

I opened / usr / local / bin / pecl to understand how it works and has this block condition that I doubt:

  if test "/usr/local/bin/php" = '@'php_bin'@'; then
    PHP=php
  else
    PHP="/usr/local/bin/php"
  fi

      

I believe the condition never matches as the string "/ usr / local / bin / php" will never change, but then why add arobases around php_bin, does arobase have a special meaning?

+3


source to share


1 answer


This is created using a template by the PEAR installer.



PECL is best to use the PHP binary that was used when PEAR was installed, so the script initializer tries to use an absolute path to execute PHP. The line you see is to test for a situation where the installer was unable to replace the holding place @php_bin@

on the actual path to the PHP binary, in which case it will fall back to calling the default executable binary for php

.

+2


source







All Articles