summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa2021-04-09 17:02:00 +0200
committerDenys Vlasenko2021-04-11 00:34:50 +0200
commit7323bca1b00d96630f52bc3b4182558d6f8cbc92 (patch)
tree74d2685b9299e4d2237032b1ca13880fb351ad34
parentf4a9908b4c21e5e8f544ab9d2bc3770b35942a6b (diff)
downloadbusybox-7323bca1b00d96630f52bc3b4182558d6f8cbc92.zip
busybox-7323bca1b00d96630f52bc3b4182558d6f8cbc92.tar.gz
lineedit: fix tab completion with equal sign
Fix tab completion for the path when equal sign (=) is used. For example: dd if=/dev/ze<tab> Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index b0adcf1..2cae471 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;
}