diff options
| author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2026-09-17 18:21:49 +0200 |
|---|---|---|
| committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2026-09-18 22:40:21 +0200 |
| commit | 6ab2d17c881cea9bb0f70915ac2f36e3b05e1215 (patch) | |
| tree | 9d891063a5c50b90e19031f8977124227f44b54a /scripts | |
| parent | 14103d395b4b26584c60204cd504614e8b3d9422 (diff) | |
| download | vyos-build-6ab2d17c881cea9bb0f70915ac2f36e3b05e1215.tar.gz vyos-build-6ab2d17c881cea9bb0f70915ac2f36e3b05e1215.zip | |
vbash: T7575: Resolve completion on root-level op-mode
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/package-build/vyatta-bash/patches/vyatta-bash/0003-Resolve-completion-on-root-level-op-mode.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/package-build/vyatta-bash/patches/vyatta-bash/0003-Resolve-completion-on-root-level-op-mode.patch b/scripts/package-build/vyatta-bash/patches/vyatta-bash/0003-Resolve-completion-on-root-level-op-mode.patch new file mode 100644 index 00000000..2db567ed --- /dev/null +++ b/scripts/package-build/vyatta-bash/patches/vyatta-bash/0003-Resolve-completion-on-root-level-op-mode.patch @@ -0,0 +1,28 @@ +From 8ee825b994d77368a9f4b3b499e65d04c545ae20 Mon Sep 17 00:00:00 2001 +From: sarthurdev <s.arthur@vyos.io> +Date: Thu, 17 Sep 2026 16:09:32 +0000 +Subject: [PATCH 3/3] Resolve completion on root-level op-mode + +--- + bashline.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/bashline.c b/bashline.c +index febdbf4..c47bde7 100644 +--- a/bashline.c ++++ b/bashline.c +@@ -1733,8 +1733,10 @@ attempt_shell_completion (text, start, end) + { + /* not assignment statement, but still want to perform command + completion if we are composing command word. */ +- foundcs = 0; ++ prog_complete_matches = programmable_completions (n, text, s, e, &foundcs); + in_command_position = s == start && STREQ (n, text); /* XXX */ ++ if (iw_compspec && in_command_position) ++ foundcs = 0; + } + else if ((e > s || (in_vyatta_restricted_mode(OUTPUT) && strcmp(n, text) == 0)) && was_assignment == 0 && have_progcomps) + { +-- +2.39.5 + |
