--- /usr/portage/app-shells/zsh/files/_gcc-config 2004-08-12 21:11:59.000000000 +0200 +++ _gcc-config 2004-08-16 09:56:01.645955952 +0200 @@ -14,11 +14,13 @@ '(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile' '(- :)'{--help,-h}'[show help]' '(- :)'{--version,-v}'[show version info]' - '(- :)'':profiles:_gcc_profile' + '(- :):profiles:_gcc_profile' ) _gcc_profile(){ - profile=$(_call_program tag gcc-config --list-profiles | sed -r -e 's/(\[([^]]*)\]) //g') + local profile + profile=$(_call_program tag gcc-config --list-profiles) + profile=${profile/\[([^]]*)\]/} _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} } }