2024年1月15日(月) 23:02 <m...@sourcetronic.com>: > Description: > Found while editing history line with a find pattern. > Apparently bash doesn't like + characters very much. > > Repeat-By: > find . -type f -ctime +30 ! -ctime +40 -exec ls -la --full-time {} + > Move cursor to any point after find and before -exec, press TAB, and > bash will print > -bash: COMP_POINT: substring expression < 0
That is an issue of the "bash-completion" project, which provides the configurations for the Bash programmable completion, but is not Bash's issue. This is actually reported at [1], which was already fixed in [2]. The fix is not yet in the release version of bash-completion, so you need to use the master branch of bash-completion on GitHub if you want a copy of bash-completion free from this issue. [1] https://github.com/scop/bash-completion/issues/1080 [2] https://github.com/scop/bash-completion/pull/860 -- Koichi