From 1f822e553f25dd2594130b2e0acf0039b5ba1567 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 1 Feb 2019 14:48:11 -0600 Subject: [PATCH] Update test.sh --- test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test.sh b/test.sh index bbee910..d289f72 100755 --- a/test.sh +++ b/test.sh @@ -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