The following commit has been merged in the master branch:
commit af26cfb2851014e4e9aa5b23955ae2c78bb034f1
Author: Ted Stern <[email protected]>
Date: Tue Dec 8 19:43:00 2009 +0200
Fix modules completion for "(default)" entries.
diff --git a/CHANGES b/CHANGES
index 0e7cc5e..6ecf9a6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -48,6 +48,9 @@ bash-completion (2.x)
[ Freddy Vulto ]
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
+ [ Ted Stern ]
+ * Fix modules completion for "(default)" entries.
+
-- David Paleino <[email protected]> Sun, 11 Oct 2009 11:11:57 +0200
bash-completion (1.1)
diff --git a/contrib/modules b/contrib/modules
index 07b2d69..acc4fb6 100644
--- a/contrib/modules
+++ b/contrib/modules
@@ -35,7 +35,7 @@ _module_avail ()
local modules="$( \
module avail 2>&1 | \
egrep -v '^(-|$)' | \
- xargs printf '%s\n' | sort )"
+ xargs printf '%s\n' | sed -e 's/(default)//g' | sort )"
compgen -W "$modules" -- $1
}
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits