|
A: It may be considered rude to answer a question with a question... but just this once...
Did you write your code on a Windows O/S?
The answer is probably "YES", which prompts two responses:
- The problem may be addressed by using the
dos2unix
command. Read the man page entry for that command to find out
more.
- There is a wider issue. You should be careful about using Windows
applications in a unit explicitly cast in a UNIX programming environment.
The existence of the tool,
dos2unix, should not be regarded
as legitimising that practice. UNIX is examinable content. You need
to develop an operational familiarity with it. Using Windows (especially
IDEs such as Visual Studio) will eventually cause major headaches
from which recovery may be quite difficult.
|