diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-17 14:14:33 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-17 14:14:33 -0500 |
commit | a032121b9b6d873fa2c003adb23a3abfda7d1f40 (patch) | |
tree | da0f7fc3659790031286c3144e69e435ff543068 /functions/interpreter | |
parent | 94d0bca705c0d49e6197abaeb2afb0aafbeeadba (diff) | |
download | vyatta-cfg-a032121b9b6d873fa2c003adb23a3abfda7d1f40.tar.gz vyatta-cfg-a032121b9b6d873fa2c003adb23a3abfda7d1f40.zip |
Make directory completions, if it is the first word of a run completion, work so that users can easily find scripts they may be trying to run.
Diffstat (limited to 'functions/interpreter')
-rw-r--r-- | functions/interpreter/vyatta-cfg-run | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index 52b5b08..52a264a 100644 --- a/functions/interpreter/vyatta-cfg-run +++ b/functions/interpreter/vyatta-cfg-run @@ -319,6 +319,9 @@ vyatta_config_run () fi if [[ "set" =~ "$1" ]]; then _vyatta_op_run "$@" + elif [[ "$1" =~ "/" ]]; then + local args=("$@") + ${args[0]} "${args[@]:1}" else /opt/vyatta/bin/vyatta-op-cmd-wrapper "$@" fi |