From: Using boolean variables in Bash
the_world_is_flat=true
# ...do something interesting...
if $the_world_is_flat ; then
echo 'Be careful not to fall off!'
fi
Explanation: What is /bin/true?
From: Using boolean variables in Bash
the_world_is_flat=true
# ...do something interesting...
if $the_world_is_flat ; then
echo 'Be careful not to fall off!'
fi
Explanation: What is /bin/true?