summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-07 13:27:58 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-09-07 13:27:58 -0500
commit0882fcaceeb2374996a53baa87488ff59d145efa (patch)
tree6490b0fabaa2cfcf5126553afbd8cf22a223a003 /etc
parent3a77209514688f91476322562c5fb1be505a71b8 (diff)
downloadvyatta-op-0882fcaceeb2374996a53baa87488ff59d145efa.tar.gz
vyatta-op-0882fcaceeb2374996a53baa87488ff59d145efa.zip
Fix some problems with the completion scripts
1. we don't need to call compopt -o filenames explicitly anymore the bash-completion scripts from the debian package do this more intelligently. 2. Restore shopts before running the command so that if the command is terminated with ctrl-c they will be set properly.
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op1
1 files changed, 0 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 5b2312c..c1d27c8 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -107,7 +107,6 @@ _vyatta_op_default_expand ()
_vyatta_op_expand
else
# after the first word => cannot be vyatta command so use original default
- compopt -o filenames
_filedir_xspec
fi
}