I am missing something fundamental regarding bash if construct / operator or string comparisons. Consider the following script:
#!/bin/bash baseSystem="testdir1" testme="NA" if [ "$baseSystem"=="$testme" ]; then echo "In error case" fi if [ "$baseSystem"!="$testme" ]; then echo "In error case" fi
I get:
In error case In error case
Thus, it is included in each case, even if they should be mutually exclusive. Any help is appreciated.
source share