I have a bunch of PHP scripts that are in DOS format (vi
displayed [noeol] [dos]
in the status line) and as expected they weren't usable.
I ran dos2unix
over them to fix the line endins:
dos2unix index.php
but when I open the files in vi
I still see [noeol]
on the status line.
Upon checking them in vi's hex editor mode (:%!xxd
) I don't see anything that jumps out at me.
In the original files the line ends looked like: 0x0D 0x0A
If after running through dos2unix
they look like: 0x0A
I also checked to ensure that the last line of the file has a proper end of line and that's there too (0x0A
).
What else could be causing this, should I worry?
I'm running CentOS 5.6 x64.