From c45b8298f87ecf0543f449ea71370fc4db919af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Gon=C3=A7alves?= Date: Wed, 4 Sep 2019 23:30:02 -0300 Subject: [PATCH] Update netkit_bash_completion Allow extraglob to be enabled and to be disabled whenever it needs to use the file. --- bin/netkit_bash_completion | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/netkit_bash_completion b/bin/netkit_bash_completion index d04eff1..f93b269 100755 --- a/bin/netkit_bash_completion +++ b/bin/netkit_bash_completion @@ -21,6 +21,9 @@ # Part of the completion routines is significantly inspired to the scripts in # the bash-completion package. +# Enable extraglob +shopt -s extglob + # The following line has been introduced to ensure backward compatibility : ${NETKIT_HOME:=$VLAB_HOME} @@ -287,3 +290,7 @@ complete -o nospace -F _lmanage lstart complete -o nospace -F _lmanage lrestart complete -o nospace -F _lmanage ltest +# Disable extraglob +shopt -u extglob + +