[Lunar-commits] <moonbase-core> lunar: fix tab-completion issue in "lunar set/unset"
Stefan Wold
ratler at lunar-linux.org
Sun Sep 7 13:20:13 CEST 2014
commit 5cfd133c81bab4205a3bf0a7bc76550a45b6c7c0
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun, 07 Sep 2014 13:16:26 +0200
URL: https://github.com/lunar-linux/moonbase-core/commit/5cfd133c81bab4205a3bf0a7bc76550a45b6c7c0
lunar: fix tab-completion issue in "lunar set/unset"
Stop tab-completion from expanding config variables including parts
of their value if the value contains an equal sign. (sed is greedy)
---
system/lunar/profile.d/lunar.rc | +1/-1
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/system/lunar/profile.d/lunar.rc
+++ b/system/lunar/profile.d/lunar.rc
@@ -22,7 +22,7 @@ _lunar_modules_held_list()
_lunar_internal_variable_list()
{
- COMPREPLY=( $( compgen -W "$( sed -rn 's;\s*(.*)=.*;\1;p' /etc/lunar/local/config )" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$( sed -rn 's;\s*([^=]*).*;\1;p' /etc/lunar/local/config )" -- "$cur" ) )
}
_lunar_exilable_module_list()
More information about the Lunar-commits
mailing list