I'm getting some similar errors while running aapt from Android-Studio, Running wine via playonlinux (haven't tried normal wine yet) or when trying to install steam. Perhaps with other programs as well, though I haven't tested them all.
After a bit of googling I haven't found a viable solution.
Here's an example from aapt in Android-Studio:
AAPT err(Facade for 1508687752): /home/xxx/Android/Sdk/build-tools/23.0.2/aapt: 2: /home/xxx/Android/Sdk/build-tools/23.0.2/aapt: Syntax error: newline unexpected (expecting ")")
The errors in wine and steam are similar, it's always syntax error and that it's expecting ")" or that "(" is unexpected.
I've also tested it with a script:
#!/bin/bash
echo 'test'
array=(1 2 3 4 5)
echo ${array[*]}
which gives me the same error when running with sh. When I'm running it with bash or "./" it works fine.
What's the cause of this problem and what can I do to fix it?