Is there a way to indicate that a particular command is case insensitive without enabling global case sensitivity (at least for this shell)?
In my particular case, I have a small application that gives me command line access to a database of email addresses, so I print:
db get email john smith
and he comes back with John Smith's email address. Therefore, I managed to enable termination mainly inside the application: setup
COMPREPLY=($(compgen -W "$(db --complete $COMP_CWORD "$COMP_WORDS[@]"}")" -- ${COMP_WORDS[COMP_CWORD]}))
works to let me follow the get
and email
tab. However, if I then type j<tab>
, it refuses because it is correctly header in the email database. I would like to get bash to finish this anyway. (If I use capital J
, it works.)
Otherwise, I can change the --complete
option if it responds by matching the input, I suppose, but ideally the command line will match the database, if at all possible.
Please note that I work inside the application when using readline, but only interacts with bash, which seems to be a problem.
source share