Skip to content

Commit

Permalink
Bug fix in bash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Dec 5, 2021
1 parent 8a73305 commit 0038d3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libtsduck/tsVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
//!
//! TSDuck commit number (automatically updated by Git hooks).
//!
#define TS_COMMIT 2649
#define TS_COMMIT 2650
2 changes: 1 addition & 1 deletion src/tstools/tsduck-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ _tsduck()
# If the value is optional but not inside "--option=value", there is no value, this is a parameter.
if [[ $syntax == bool* || ( $syntax == opt:* && -z $aftereq ) ]]; then
opt=@
syntax=$($cmd --help=options 2>/dev/null | sed -e '/^@:/' -e 's/^@://')
syntax=$($cmd --help=options 2>/dev/null | sed -e '/^@:/!d' -e 's/^@://')
fi

syntax=${syntax/#opt:/}
Expand Down

0 comments on commit 0038d3d

Please sign in to comment.