[PATCH] lineedit: fix tab completion with equal sign
Denys Vlasenko
vda.linux at googlemail.com
Sat Apr 10 22:38:31 UTC 2021
Applied, thank you
On Fri, Apr 9, 2021 at 5:10 PM Natanael Copa <ncopa at alpinelinux.org> wrote:
>
> Fix tab completion for the path when equal sign (=) is used. For
> example: dd if=/dev/ze<tab>
>
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
> ---
>
> I have used busybox ash as the primary shell for over a decade. This
> tiny feature will make a pretty big impact.
>
> libbb/lineedit.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libbb/lineedit.c b/libbb/lineedit.c
> index b0adcf140..2cae4711a 100644
> --- a/libbb/lineedit.c
> +++ b/libbb/lineedit.c
> @@ -1071,7 +1071,7 @@ static NOINLINE int build_match_prefix(char *match_buf)
> continue;
> for (--i; i >= 0; i--) {
> int cur = int_buf[i];
> - if (cur == ' ' || cur == '<' || cur == '>' || cur == '|' || cur == '&') {
> + if (cur == ' ' || cur == '<' || cur == '>' || cur == '|' || cur == '&' || cur == '=') {
> remove_chunk(int_buf, 0, i + 1);
> break;
> }
> --
> 2.31.1
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list