Is the problem with bash 2 only the ; before the } ? Then wouldn't it be possible to use perl to determine if a { ??? } type construct is a variable replacement thingy or a block of code, and edit it accordingly?
Any idea where I could get a list of the syntax changes from bash 1.4.7 -> bash 2.0 ? John Foster