diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2007-10-02 18:13:30 -0700 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2007-10-02 18:13:30 -0700 |
commit | a08c2e160af0c02e8a2ca45132ffddb7ca168d8e (patch) | |
tree | e5a3b07c9a2c48ef68fde7f8b0faac185ae6cb23 /etc | |
parent | 69ec82541cd5d0c47d541ce94b1281a38c230d5d (diff) | |
download | vyatta-op-a08c2e160af0c02e8a2ca45132ffddb7ca168d8e.tar.gz vyatta-op-a08c2e160af0c02e8a2ca45132ffddb7ca168d8e.zip |
allow wildcard with specfied list
can use this to complete a list of hostnames plus allow given unknown host or IP
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 3244394..61d8cf5 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -103,9 +103,9 @@ _vyatta_op_is_allowed () # return immediately if nothing allowed [ ${#_vyatta_op_allowed[@]} -ne 0 ] || return - # -- is wildcard that allows anything - [ ${_vyatta_op_allowed[0]} == -- ] && return for allowed in ${_vyatta_op_allowed[@]} ; do + # -- is wildcard that allows anything + [ $allowed == -- ] && return [ "$arg" == $allowed ] && return done false |