aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-02-01 19:47:03 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-02-01 19:47:03 -0800
commitf82d1e3322a57d9d137e5a71fd095e38877e62a4 (patch)
tree86a8c780dcf0e43f13e0b29c50ce49c5ae6dcd0d
parent000439e85de9a1163d9bdbc1773e98bb4357a50f (diff)
downloadcdlog-f82d1e3322a57d9d137e5a71fd095e38877e62a4.tar.gz
cdlog-f82d1e3322a57d9d137e5a71fd095e38877e62a4.tar.bz2
cdlog-f82d1e3322a57d9d137e5a71fd095e38877e62a4.zip
Use range expansion.
* cdlog.sh (cdlog.mcd): Replace 1 2 3 ... 9 with {1..9}.
-rw-r--r--cdlog.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdlog.sh b/cdlog.sh
index c7d81fb..e26f374 100644
--- a/cdlog.sh
+++ b/cdlog.sh
@@ -126,7 +126,7 @@ cdlog.mcd()
swap=y
fi
- for x in 1 2 3 4 5 6 7 8 9; do
+ for x in {1..9}; do
printf "%s: %s\n" $x "${d[$x]}"
done