gst-launch tab-completion!
David Röthlisberger
david at rothlis.net
Thu Dec 20 07:12:00 PST 2012
On 20 Dec 2012, at 14:22, Matt Pekar wrote:
> This looks like a nice plugin that would be great for handling some of the elements with loads of properties, but I could not get it to work (for the gstreamer-0.10 variant):
>
> bash: /etc/bash_completion.d/gstreamer-completion: line 33: conditional binary operator expected
> bash: /etc/bash_completion.d/gstreamer-completion: line 33: syntax error near `curtype'
> bash: /etc/bash_completion.d/gstreamer-completion: line 33: ` if [[ -v curtype && -v option ]]; then # Called from _gst_launch'
>
> I'm running Debian squeeze, here are the versions of bash and bash-completion I have:
>
> i bash 4.1-3 4.1-3
> i bash-completion 1:1.2-3 1:1.2-3
Thanks for the feedback. I guess the "[[ -v ... ]]" to check if a variable
is set, must be syntax new to bash 4.2.
For bash 4.1 compatibility you would have to change line 33 to:
if [[ -n "$curtype" ]]; then # Called from _gst_launch
However, the script as it currently stands uses functions like
_init_completion only available in bash-completion >= 2.0. Give me an
evening or two to make this backwards-compatible for you. :-)
Dave.
More information about the gstreamer-devel
mailing list