Trying to export the version of an install (security) application that does not use the standard .App format.
When I run the command /usr/local/agent/agent --version 2>&1 | awk '/Agent/ {print $NF}' in Terminal, it outputs the correct information.
When I try to use it in a variable AgentVer=( /usr/local/agent/agent --version 2>&1 | awk '/Agent/ {print $NF}' ) (for EA) I get error "-sh: syntax error near unexpected token `2'" so I know it has to do with the special characters but don't know how to allow them.