diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-09-08 08:24:09 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-09-08 08:24:09 -0700 |
commit | 134f35f838d444d63a1774b986380264e7089c6e (patch) | |
tree | f720a657594a52bdb611dabef15b85ae531ffce5 /etc/bash_completion.d | |
parent | b1c8827efedc245d47f89cf8b4db30f495498ae7 (diff) | |
parent | 5a4ac0f6fc5fa0a25663f7834fef4cbd5ba98ecd (diff) | |
download | vyatta-cfg-134f35f838d444d63a1774b986380264e7089c6e.tar.gz vyatta-cfg-134f35f838d444d63a1774b986380264e7089c6e.zip |
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-cfg into mendocino
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index b19fef2..98f26f8 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -84,19 +84,15 @@ done show () { - local show_all='' local -a args=() for arg in "$@"; do if [ "$arg" == "-all" ]; then - show_all='-all' + args+=('--show-show-defaults') else - args[${#args[@]}]="$arg" + args+=("$arg") fi done - local level=$(vyatta_cli_shell_api NOEVAL getEditLevelStr) - ${vyatta_sbindir}/vyatta-output-config.pl ${show_all} \ - $level ${args[@]} \ - | eval "${VYATTA_PAGER:-cat}" + cli-shell-api showCfg "${args[@]}" | eval "${VYATTA_PAGER:-cat}" } commit () |