17 lines
206 B
Bash
Executable File
17 lines
206 B
Bash
Executable File
#!/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
|