From 6c806062d2b535701bd5dcce4d3b41fe46a69670 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 29 Jul 2013 15:22:42 -0400 Subject: [PATCH] bash completion: Remove underscores in handler function names If the command name contains a dash, it is removed to derive the function name that will handle completion. For example, add-context becomes _lttng_cmd_addcontext. The functions with erroneous names were not getting called. Reported-by: Daniel U. Thibault Signed-off-by: Simon Marchi Signed-off-by: David Goulet --- extras/lttng-bash_completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extras/lttng-bash_completion b/extras/lttng-bash_completion index efd5f58e3..a90820ab4 100644 --- a/extras/lttng-bash_completion +++ b/extras/lttng-bash_completion @@ -20,7 +20,7 @@ _lttng_complete_sessions() { return } -_lttng_cmd_add_context() { +_lttng_cmd_addcontext() { local add_context_opts add_context_opts=$(lttng add-context --list-options) @@ -182,7 +182,7 @@ _lttng_cmd_disablechannel() { esac } -_lttng_cmd_disable_event() { +_lttng_cmd_disableevent() { local disable_event_opts disable_channel_opts=$(lttng disable-event --list-options) @@ -222,7 +222,7 @@ _lttng_cmd_list() { esac } -_lttng_cmd_set_session() { +_lttng_cmd_setsession() { local set_session_opts set_session_opts=$(lttng set-session --list-options) -- 2.34.1