Package: nvme-cli Version: 1.16-4 Severity: normal Tags: patch /usr/share/bash-completion/completions/nvme contains two syntax errors, resulting in tab completion actually aborting the current command line.
See attached patch for a fix. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-debug'), (100, 'unstable-debug'), (100, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.18.0-2-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages nvme-cli depends on: ii libc6 2.33-7 ii libuuid1 2.38-4 ii uuid-runtime 2.38-4 Versions of packages nvme-cli recommends: ii pci.ids 0.0~2022.07.05-1 nvme-cli suggests no packages. -- no debconf information
>From 2955a87158b7d4d0c9d8fba84022c3f66779040e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= <fbri...@fbriere.net> Date: Tue, 19 Jul 2022 15:58:17 -0400 Subject: [PATCH] Fix syntax errors in bash-nvme-completion.sh --- completions/bash-nvme-completion.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/completions/bash-nvme-completion.sh b/completions/bash-nvme-completion.sh index 41938d77..b51cd49a 100644 --- a/completions/bash-nvme-completion.sh +++ b/completions/bash-nvme-completion.sh @@ -101,8 +101,7 @@ _cmds="list list-subsys id-ctrl id-ns \ connect disconnect disconnect-all gen-hostnqn \ show-hostnqn dir-receive dir-send virt-mgmt \ rpmb boot-part-log fid-support-effects-log \ - supported-log-pages lockdown" - supported-log-pages list-endgrp" + supported-log-pages lockdown list-endgrp" # Add plugins: for plugin in "${!_plugin_subcmds[@]}"; do @@ -647,7 +646,7 @@ plugin_lnvm_opts () { opts+=" --target-name= -n" ;; "factory") - opts+=" --device-name= -d --erase-only-marked -e + opts+=" --device-name= -d --erase-only-marked -e \ --clear-host-side-blks -s --clear-bb-blks -b" ;; "diag-bbtbl") -- 2.35.1