From af4c0df9b25605ceb088cab4c5478ac52df25752 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 1 Feb 2024 19:50:32 -0800 Subject: Don't use global x for looping. * cdlog.sh (cdlog.mcd): Oh boy; we have used our own $x variable as a loop dummy. Switch to i which is set up as local. --- cdlog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdlog.sh b/cdlog.sh index 087f454..0525213 100644 --- a/cdlog.sh +++ b/cdlog.sh @@ -127,8 +127,8 @@ cdlog.mcd() swap=y fi - for x in {1..9}; do - printf "%s: %s\n" $x "${d[$x]}" + for i in {1..9}; do + printf "%s: %s\n" $i "${d[$i]}" done read -p "? " sel -- cgit v1.2.3