From 0ad97c79dd30a30c0368f4b15103ed9bd1f3907b Mon Sep 17 00:00:00 2001 From: Ben O'Hara Date: Sat, 9 Nov 2013 00:58:24 +1000 Subject: [PATCH] Fix missing redirect for no file --- src/_vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_vagrant b/src/_vagrant index b0f4b83..06d641e 100644 --- a/src/_vagrant +++ b/src/_vagrant @@ -76,7 +76,7 @@ __plugin_list () __vm_list () { - _wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define * "\?''\?\([a-zA-Z0-9\-]\+\)"\?''\?' | awk '{print $NF}' | sed 's/''//g'|sed 's/\"//g' ) + _wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define * "\?''\?\([a-zA-Z0-9\-]\+\)"\?''\?' 2>/dev/null | awk '{print $NF}' | sed 's/''//g'|sed 's/\"//g' ) } __vagrant-box ()