[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 9a7c9804f207981834cb85b7b92c3a0a30c94eaa
Ville Skyttä
ville.skytta at iki.fi
Fri Jun 12 17:12:59 UTC 2009
The following commit has been merged in the master branch:
commit 215cdb9cf439ad43fc53a5058a9b8544d464dbe3
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Fri Jun 12 20:10:18 2009 +0300
Use compgen -W instead of grepping $cur in vpnc.
diff --git a/contrib/vpnc b/contrib/vpnc
index 9d05620..73bc0f0 100644
--- a/contrib/vpnc
+++ b/contrib/vpnc
@@ -40,7 +40,7 @@ _vpnc()
--pid-file --local-port --udp-port --disable-natt \
--non-inter' -- $cur ) )
else
- COMPREPLY=( $( command ls /etc/vpnc | grep "^$cur" ) )
+ COMPREPLY=( $( compgen -W '$( command ls /etc/vpnc )' -- $cur ) )
fi
} &&
complete -F _vpnc vpnc
--
bash-completion
More information about the Bash-completion-commits
mailing list