From 36ded00a9768b2854e1440a0375a7a9798740b07 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 30 Aug 2011 18:26:54 -0500 Subject: Only generate directory names for path expansions, node.def is never a valid completion unless part of a filename which is handled differently --- functions/interpreter/vyatta-op-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run index 883e03e..2d578b9 100644 --- a/functions/interpreter/vyatta-op-run +++ b/functions/interpreter/vyatta-op-run @@ -71,7 +71,7 @@ _vyatta_op_conv_node_path () local -a ARR node_path=$1 node=$2 - ARR=( "$node_path/$node"* ) + ARR=( $(compgen -d $node_path/$node) ) if [[ "${#ARR[@]}" == "1" ]]; then echo ${ARR[0]##*/} elif [[ "${#ARR[@]}" == "0" ]]; then -- cgit v1.2.3