[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 7ffb61269596891d387330db7499c066520b869d
Ville Skyttä
ville.skytta at iki.fi
Thu Apr 16 17:54:17 UTC 2009
The following commit has been merged in the master branch:
commit 7ffb61269596891d387330db7499c066520b869d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Thu Apr 16 20:54:14 2009 +0300
Use _split_longopt in _iptables.
diff --git a/CHANGES b/CHANGES
index e152dfd..bf93241 100644
--- a/CHANGES
+++ b/CHANGES
@@ -35,7 +35,7 @@ bash-completion (1.x)
* Add _split_longopt() helper for improved handling of long options that
take arguments in both "--foo bar" and "--foo=bar" formats.
* Use _split_longopt to improve and clean up aspell, chgrp, chown, chkconfig,
- make, and generic long option completion.
+ iptables, make, and generic long option completion.
* Add chown --from and --reference value completions.
* Add chgrp --reference value completion.
* Do not assume all --foo= options take filenames in generic long option
diff --git a/bash_completion b/bash_completion
index c8272ff..360c55c 100644
--- a/bash_completion
+++ b/bash_completion
@@ -3146,6 +3146,8 @@ _iptables()
table="-t mangle"
fi
+ _split_longopt
+
case "$prev" in
-*[AIDRPFXLZ])
COMPREPLY=( $( compgen -W '`iptables $table -nL | \
@@ -3179,7 +3181,7 @@ _iptables()
--delete-chain --policy --rename-chain --proto --source \
--destination --in-interface --jump --match --numeric \
--out-interface --table --verbose --line-numbers --exact \
- --fragment --modprobe= --set-counters --version' -- "$cur") )
+ --fragment --modprobe --set-counters --version' -- "$cur") )
fi
;;
esac
--
bash-completion
More information about the Bash-completion-commits
mailing list