Article 5607J Why is variable in bash script executing as a command when I run it?

Why is variable in bash script executing as a command when I run it?

by
witchkinkofangmar
from LinuxQuestions.org on (#5607J)
My variable:
Code:ipaCheck=$(ipa-client-install --mkhomedir -p $ipaUser --password $ipaPass --unattended | echo $?)Executes as a command everytime I run the script. I want it to store the command, not run it.latest?d=yIl2AUoC8zA latest?i=tAvNZMqqqfs:nUs3D1qqzIg:F7zBnMy latest?i=tAvNZMqqqfs:nUs3D1qqzIg:V_sGLiP latest?d=qj6IDK7rITs latest?i=tAvNZMqqqfs:nUs3D1qqzIg:gIN9vFwtAvNZMqqqfs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments