[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 6e2b17c4e637f6cebe5a698c86258edfe86e8971
Ville Skyttä
ville.skytta at iki.fi
Tue Dec 8 17:46:39 UTC 2009
The following commit has been merged in the master branch:
commit af26cfb2851014e4e9aa5b23955ae2c78bb034f1
Author: Ted Stern <lgtedstern at gmail.com>
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 <d.paleino at gmail.com> 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
More information about the Bash-completion-commits
mailing list