In shell linux/unix command, when you're typing foo=bar, you put the string bar in the foo variable. For checking you could type echo $foo that should return bar this is what the variable foo contains
When you're type foo= bar with the space, the shell interpreter put nothing, in the foo variable and handle bar as a application command through the PATH variable. As the shell didn't find bar command in the PATH variable and you're using Ubuntu distribution looks like, the system is asking if you want to install the bar application. It's just a pop up message when you application is not find. You could check the PATH variable with this command : echo $PATH. More info about this system variable Here
foowill remain valid only for the duration ofbar, and doesn't affect further commands in the session. – Ruslan Aug 16 '17 at 09:33