From bdcad47147312c1389c42bc370c800a2d954e686 Mon Sep 17 00:00:00 2001 From: veg Date: Mon, 21 Sep 2026 09:42:19 +0000 Subject: [PATCH] refactor: drop eval from pick_live_party Select the chosen positional argument with shift + "$1" instead of building a $pick-indexed variable reference through eval. --- party | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/party b/party index 8654e58..3d14d21 100755 --- a/party +++ b/party @@ -668,7 +668,8 @@ pick_live_party() { if [ "$pick" -lt 1 ] || [ "$pick" -gt $# ]; then echo "party: out of range" >&2; return 1 fi - eval "roster_read \"\$$pick\"" + shift $((pick - 1)) + roster_read "$1" } # Resolve the party a join or knock targets: the named party if given,