bash_completion: Always enable extglob
authorMichael Hanselmann <hansmi@google.com>
Tue, 18 Sep 2012 12:56:52 +0000 (14:56 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 19 Sep 2012 13:54:28 +0000 (15:54 +0200)
commit94014b6328f813b674a1126ffd221705d7e315b3
tree32a984cd27ec04f51dd2731f90df878ceea503a1
parent9f2265bce8fe16a79ad78098a7681d69f6730277
bash_completion: Always enable extglob

In older versions of GNU Bash extended patterns, such as “@(…)” are only
available with the “extglob” shell option. This patch adds a wrapper
function so that extglob is always enabled while doing any completion.
Due to early returns inside the main completion function this seemed
like the best option.

Reported by Sascha Lucas.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
autotools/build-bash-completion