svandragt / psh

PHP Virtual Environment Shell
MIT License
0 stars 0 forks source link

Not all PHP versions found #8

Closed svandragt closed 3 years ago

svandragt commented 3 years ago

Yup issue with bash arrays, because who programs in bash

tomjn commented 3 years ago

You can list versions installed via homebrew with brew list --versions

Also what's the array issue? it could be the delimeter variable bash uses to determine where one item ends and the next begins

svandragt commented 3 years ago

Bash arrays are a pain, it's too easy to shoot yourself in the foot and lose all but the first array item or convert it to string by accident, and array items as words vs things with spaces causes problems.

Instead i'm using linebreaks and this simplified things massively. closed by 549af1d0597f7672a2aec540d9089c13d9f5b5fe