Home > OS >  Java assignment results
Java assignment results

Time:11-13



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 it

CodePudding user response:

reference 1/X - I - n reply:
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

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

CodePudding user response:

Has solved the problem
  • Related