1

Colon breaks the variable subsitution

view story
linux-howto

http://unix.stackexchange.com – I am trying to lookup some C functions so that I could debug while using strace. So I setup a bash function to look it up in firefox (or links), but the substitution falls apart with : and escaping does not work, at least not in a simple way. Working ff() { firefox "https://www.google.com/search?hl=en&q=%*" } Not working cr() { firefox "codewiki.wikidot.com/c:system-calls:%*" } firefox gets : parsed in as input, but also $* gets parse in as literal characters. Tried: 1. Escaping : % * 2. Enclosing ${%*} 3. Changing " ' 4. EnvVariable COMP_WORDBREAKS=${COMP_WORDBREAKS//:} (HowTos)