I'm having an issue where I need to pass a teamcity build results URL (such as http://teamcity.jetbrains.net/viewLog.html?buildTypeId=bt400&buildId=lastFinished&guest=1) through a couple disconnected processes running bash scripts and the '&' is is causing issues when the URL is passed as an env variable ... the text to the right of the variable is being run in the background when I try to set the variable. Beautiful. I've tried wrapping the url in quotes but there are some sub functions that also process the variable and calls to eval so the quotes get stripped off.
Using a public jetbrains url as an example when encode the ampersnd as '%26' so the URL is like this, but teamcity doesn't recognize it.
I have an alternate solution of creating a tiny url but I don't like the idea of depending on tinyurl.com always being available. I'm sure it is I just don't like the dependency.
Any thoughts on how to obtain a bash compliant teamcity url would be greatly appreciated!