dualbus 1380583557 learn Check your code here first: http://www.shellcheck.net/ if you still have issues, then reduce your >100 line test case to the minimum possible and ask again.