From: Simon Marchi Date: Mon, 29 Jul 2013 19:22:42 +0000 (-0400) Subject: bash completion: Remove underscores in handler function names X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=6c806062d2b535701bd5dcce4d3b41fe46a69670 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 --- 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)