[PATCH] trace-cmd completion: Fix trace-cmd report to show files
Steven Rostedt <[email protected]> Fri, 30 May 2025 15:45:53 -0400
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
From: "Steven Rostedt (Google)" <[email protected]> The addition of the trace-cmd sqlhist had to separate out where commands are printed and where files are printed, and it split cmd_options into one that showed the commands and cmd_options_files that also will show the files if no command was found to be completed. Some trace-cmd commands should show files and some should not. trace-cmd report is one that should show files if nothing else is completed, but it was given cmd_options when it should have used cmd_options_files. Fixes: 2149da9cdc48b ("trace-cmd: Add sqlhist to bash completion") Signed-off-by: Steven Rostedt (Google) <[email protected]> --- tracecmd/trace-cmd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracecmd/trace-cmd.bash b/tracecmd/trace-cmd.bash index 82a3b91dfd02..a7e81e0ded4a 100644 --- a/tracecmd/trace-cmd.bash +++ b/tracecmd/trace-cmd.bash @@ -237,7 +237,7 @@ __trace_cmd_report_complete() plugin_options "$cur" ;; *) - cmd_options report "$cur" + cmd_options_files report "$cur" ;; esac } -- 2.47.2