diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-09 11:47:12 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-09 11:47:12 -0800 |
commit | 0db7f5903f0596b51d2b96d9c73c0ffbd59b83f5 (patch) | |
tree | 6f58dd1b86f467435ffe52d1a3eacc6faceb1c72 /etc | |
parent | e4991240444ecd6a4aaf84204d6c68de240ed26e (diff) | |
download | vyatta-cfg-0db7f5903f0596b51d2b96d9c73c0ffbd59b83f5.tar.gz vyatta-cfg-0db7f5903f0596b51d2b96d9c73c0ffbd59b83f5.zip |
Fix Bug 3385 in completion script, thus, also fixing Bug 4120
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 369ef7a..5589d69 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -333,6 +333,10 @@ exit () # run op mode commands run () { + if [ $# == 0 ]; then + echo Incomplete command + return 1 + fi _vyatta_op_run $@ } |