From c43ee755bb4bf9cab9262b343f48feeef9f9f56e Mon Sep 17 00:00:00 2001 From: Thierry Lelegard Date: Sun, 5 Dec 2021 17:32:57 +0100 Subject: [PATCH] Fix dynamic declaration of bash autocompletion --- src/libtsduck/tsVersion.h | 2 +- src/tstools/tsduck-completion.bash | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libtsduck/tsVersion.h b/src/libtsduck/tsVersion.h index a0d02a970..a709b442c 100644 --- a/src/libtsduck/tsVersion.h +++ b/src/libtsduck/tsVersion.h @@ -44,4 +44,4 @@ //! //! TSDuck commit number (automatically updated by Git hooks). //! -#define TS_COMMIT 2650 +#define TS_COMMIT 2651 diff --git a/src/tstools/tsduck-completion.bash b/src/tstools/tsduck-completion.bash index 3108cd2e5..1476dec60 100644 --- a/src/tstools/tsduck-completion.bash +++ b/src/tstools/tsduck-completion.bash @@ -183,5 +183,6 @@ _tsduck() } # Declare completions for all TSDuck commands. -complete -F _tsduck ${__ts_cmds[*]} +# Do not change the order of the following two lines, guess why... [[ $OSTYPE == cygwin || $OSTYPE == msys ]] && complete -F _tsduck ${__ts_cmds[*]/%/.exe} +complete -F _tsduck ${__ts_cmds[*]}