summary refs log tree commit diff
path: root/Completion/Linux/Command/_vserver
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2016-05-18 22:01:35 -0500
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2016-05-22 19:02:18 +0100
commit7700170d6d421ad39ff7a03ebbfbc47e08523e18 (patch)
treef15b5a87a68c516426b7bacd6ad30fe32059d358 /Completion/Linux/Command/_vserver
parentef7ef1f65641c8bda7fa826a9145eec6d032263b (diff)
downloadzsh-7700170d6d421ad39ff7a03ebbfbc47e08523e18.tar.gz
zsh-7700170d6d421ad39ff7a03ebbfbc47e08523e18.tar.xz
zsh-7700170d6d421ad39ff7a03ebbfbc47e08523e18.zip
38514: remove unnecessary ls in completion
Diffstat (limited to 'Completion/Linux/Command/_vserver')
-rw-r--r--Completion/Linux/Command/_vserver2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_vserver b/Completion/Linux/Command/_vserver
index 2401387e5..36a61c45a 100644
--- a/Completion/Linux/Command/_vserver
+++ b/Completion/Linux/Command/_vserver
@@ -95,7 +95,7 @@ _vserver_cache_cfgdir() {
 _vserver_cache_vsnames() {
   if [[ "$_cache_vserver_vsnames_initialized" != true ]]; then
     typeset -ga _cache_vserver_vsnames
-    _cache_vserver_vsnames=( $(ls -d $_cache_vserver_cfgdir/*/ | sed -e s,$_cache_vserver_cfgdir,, | tr -d '/') )
+    _cache_vserver_vsnames=( $_cache_vserver_cfgdir/*(/:t) )
     _cache_vserver_vsnames_initialized=true
   fi
 }