I want to check if the variable is equal to the true keyword and if it is then do something accordingly but it is behaving in an undefined way. don't get what I want its a simple question but thank you : >
STRICT=$false
if [ "$STRICT" == $true ] # i am not sure about this line what should i do
then
FS="${FS} hey"
fi
trueandfalse?$falseexpands to the value of the (presumably undefined) variablefalse.trueandfalsesince you're calling itkeyword. Consider taking a look at this page about a booleantruedirectly because it's just a regular string. There is no boolean type in shell, and so no true and false values.