coderofsalvation/powscript

and/or substitution messing with some expressions

fcard opened this issue · 0 comments

fcard commented

As seen in:

if -x $(command -v 'python')
  echo 'python exists'

which compiles to:

if [[ -x $(comm&& -v python) ]]; then
  echo 'python exists'
fi

Also happens with or/||.