aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-12-11 18:31:03 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-12-11 18:34:47 -0800
commiteb444279e12b4c1aa9d814ab82e84b84640eee4f (patch)
treeb7afb8490d5e863f6ed7554c573147d6c4d0f40c
parent83bf01f9e0b69c55bf151867551147feef6ddc07 (diff)
downloadcdlog-eb444279e12b4c1aa9d814ab82e84b84640eee4f.tar.gz
cdlog-eb444279e12b4c1aa9d814ab82e84b84640eee4f.tar.bz2
cdlog-eb444279e12b4c1aa9d814ab82e84b84640eee4f.zip
fix broken cd when cdlog_lru is not enabled.
* cdlog.sh (cdlog.chdir): Fix bad array index expansion syntax in the case when we don't have cdlog_lru.
-rw-r--r--cdlog.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdlog.sh b/cdlog.sh
index f1cd6d7..c8fa4f4 100644
--- a/cdlog.sh
+++ b/cdlog.sh
@@ -241,7 +241,7 @@ cdlog.chdir()
pv=$nx
done
else
- for ((i = ${#d[@}}; i >= 2; i--)); do
+ for ((i = ${#d[@]}}; i >= 2; i--)); do
d[$((i+1))]=d[$i]
done