diff options
author | Tom Grennan <tgrennan@io.vyatta.com> | 2007-12-06 11:14:39 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@io.vyatta.com> | 2007-12-06 11:14:39 -0800 |
commit | 2a09f8d313c04f21ca222e615ffa2bd4ca34b824 (patch) | |
tree | f0d87699b0b32d5581f18818034384eab3125c3a /etc | |
parent | d9e410568b4d46621b5099ebad75828fc510f734 (diff) | |
parent | 378778b29253151dacb9134b07f1255b9204fdf5 (diff) | |
download | vyatta-op-2a09f8d313c04f21ca222e615ffa2bd4ca34b824.tar.gz vyatta-op-2a09f8d313c04f21ca222e615ffa2bd4ca34b824.zip |
Merge branch 'master' of http://phuket.vyatta.com/vyatta-op
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/10vyatta-op | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op index 5118831..5a672c3 100644 --- a/etc/bash_completion.d/10vyatta-op +++ b/etc/bash_completion.d/10vyatta-op @@ -40,7 +40,8 @@ test -f /etc/default/vyatta && \ test ! -d "$vyatta_op_templates" && \ return 0 -declare _vyatta_op_last_comp +declare -r _vyatta_op_last_comp_init='>>>>>>LASTCOMP<<<<<<' +declare _vyatta_op_last_comp=${_vyatta_op_last_comp_init} declare _vyatta_op_node_path declare -a _vyatta_op_noncompletions _vyatta_op_completions @@ -246,7 +247,7 @@ _vyatta_op_expand () ${_vyatta_op_completions[@]} \ | eval ${VYATTA_PAGER:-cat} COMPREPLY=( "" " " ) - _vyatta_op_last_comp="" + _vyatta_op_last_comp=${_vyatta_op_last_comp_init} else _vyatta_op_last_comp="${COMP_WORDS[*]}" fi @@ -261,7 +262,7 @@ _vyatta_op_run () local restore_shopts=$( shopt -p extglob nullglob | tr \\n \; ) shopt -s extglob nullglob - _vyatta_op_last_comp="" + _vyatta_op_last_comp=${_vyatta_op_last_comp_init} false; estat=$? for arg ; do if [ -f "$tpath/$arg/node.def" ] ; then |