any pointers?
I had something similar when I had edited and resaved a file on Windows - it had put CR+LF at the end of each line in the file, whereas Linux was expecting only LF.
I reopened the file and specifically saved with LF only and it worked fine.