summaryrefslogtreecommitdiff
path: root/functions/interpreter
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-30 18:26:54 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-30 18:28:03 -0500
commit36ded00a9768b2854e1440a0375a7a9798740b07 (patch)
treea529b3bfbe8bbe8652125399e566fa73a0626b4f /functions/interpreter
parent43383bd43c17db7b40ee7257206c2d5dea4292ba (diff)
downloadvyatta-op-36ded00a9768b2854e1440a0375a7a9798740b07.tar.gz
vyatta-op-36ded00a9768b2854e1440a0375a7a9798740b07.zip
Only generate directory names for path expansions, node.def is never a valid completion unless part of a filename which is handled differently
Diffstat (limited to 'functions/interpreter')
-rw-r--r--functions/interpreter/vyatta-op-run2
1 files changed, 1 insertions, 1 deletions
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