From: Simon Marchi <[email protected]> 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 <[email protected]> Signed-off-by: Simon Marchi <[email protected]> --- extras/lttng-bash_completion | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extras/lttng-bash_completion b/extras/lttng-bash_completion index efd5f58..a90820a 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) -- 1.7.1 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
