What's upvar?I dunno, what's up with you?
https://github.com/mjauquer/bash-upvars
I think the earliest reference to this solution is here: https://alioth-lists-archive.debian.net/pipermail/bash-completion-devel/2010-May/002743.html, inspired by https://wiki.tcl.tk/1508
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!