Potrebbero essere i CTRL+M in fondo alla riga ( ^M ).
Se i file sono in formato DOS potrebbero infastidire non poco l'interprete della bash.