17 lines
206 B
Bash
17 lines
206 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
#
|
||
|
|
# Demonstration of the arithmetic expressions as tests
|
||
|
|
#
|
||
|
|
|
||
|
|
for i in {-3..3}; do
|
||
|
|
echo -n "$i: "
|
||
|
|
if ((i)); then
|
||
|
|
echo "$? true"
|
||
|
|
else
|
||
|
|
echo "$? false"
|
||
|
|
fi
|
||
|
|
done
|
||
|
|
|
||
|
|
exit
|