bash test boolean 1

bash test boolean

the_world_is_flat=true
# ...do something interesting...
if [ "$the_world_is_flat" = true ] ; then
    echo 'Be careful not to fall off!'
fi

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a variable assignment.
3. The third line is a conditional statement.

The conditional statement is the most interesting part.

The conditional statement is an if statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement.

The if statement is a compound statement

Similar Posts