Java_version=$(Java version)
Echo $java_version
Question:
1, the results of the Java to assignment, cannot use redirect operations such as;
CodePudding user response:
Doubt this SHELL environment you have any question, or environment variables such as Fried,Try to put this into the a shell to run,
#!/bin/bash
Java_version=$(Java version)
Echo $java_version
CodePudding user response:
Has confirmed that's not a matter of circumstance, you can try, it is possible that the Java the return value is not using shell channel, have the great god can help us to solve itCodePudding user response: