[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compopt doesn't seem to output options for current completion specif
From: |
Koichi Murase |
Subject: |
Re: compopt doesn't seem to output options for current completion specification as documented |
Date: |
Wed, 14 Feb 2024 07:35:30 +0900 |
2024年2月13日(火) 6:30 Britton Kerin <britton.kerin@gmail.com>:
> But compopt seems to be entirely silent when run from a completion function:
I know you are using ble.sh, and the issue is indeed present in
ble.sh. This is not an issue of Bash.
Because ble.sh tries to emulate the programmable completion of Bash
outside Bash's completion context, when "builtin compopt" is executed
inside the completion function, it produces the error message "bash:
compopt: not currently executing completion function". For this reason
(and other reasons), when the programmable completion is performed
inside ble.sh, ble.sh temporarily overwrites `compopt' with a shell
function emulating the behavior of `compopt'. However, that emulation
is not complete. I'll think about it.
--
Koichi