Why doesn't Bash's programmable completion provide the cursor offset within the word being completed? With all the complexity around word splitting—shell quoting, escpaing, expansions—figuring out the intra-word cursor position by hand is a nightmare. Would it really be so hard for Bash to offer this info natively, rather than leaving script authors to replicate the shell's own parsing logic?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://hollo.social/@hongminhee/01998124-3b57-760e-a149-30191bdbf965 on your instance and quote it. (Note that quoting is not supported in Mastodon.)