Update test.sh

This commit is contained in:
2019-02-01 14:48:11 -06:00
parent f2eae8bbd7
commit 1f822e553f

10
test.sh
View File

@@ -18,12 +18,12 @@ fi
while getopts ':rabc' flag; do
while getopts ':abcr' flag; do
case "${flag}" in
r) echo "R" ;;
a) echo "A" ;;
b) echo "B" ;;
c) echo "C" ;;
r) echo "R=${flag[r]}" ;;
a) echo "A=${flag[a]}" ;;
b) echo "B=${flag[b]}" ;;
c) echo "C=${flag[c]}" ;;
esac
done