Home > OS >  Shell basic questions.
Shell basic questions.

Time:12-23

The function __readINI () {
INIFILE=$1;
SECTION=$2;
KEY=$3;
_readIni=` awk -f ':'/\ [' $SECTION \] {1} a=a==1 & amp; & $1 ~/'$KEY/{print $2; Exit} '$INIFILE `
Echo "${_readIni}
"}
Board_version=$(__readINI bbversion. Ini version board)

HVer="AWDRFOG_00A"

Echo ${board_version}
Echo ${hVer}

If [[$board_version==$hVer]]. Then
Echo "eq"
The else
Echo "! Eq
"Fi
Where
Echo ${board_version}
Echo ${hVer}
Printing is the same, but the if condition to print! Eq
Board_version
And what is the difference between direct assignment?
How to solve?

CodePudding user response:

Print the same? The same as format?