Files
hpr_website/www/eps/hpr2639/hpr2639_bash9_ex1.sh

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