bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash aborts line-editing on tab-expansion with find pattern


From: Koichi Murase
Subject: Re: bash aborts line-editing on tab-expansion with find pattern
Date: Mon, 15 Jan 2024 23:09:53 +0900

2024年1月15日(月) 23:02 <mow@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]