Bug 234427 - mcedit does not include EOL at the end of the file (mc's internal editor)
mcedit does not include EOL at the end of the file (mc's internal editor)
Product: Fedora
Classification: Fedora
Component: mc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jindrich Novy
Depends On:
  Show dependency treegraph
Reported: 2007-03-29 02:35 EDT by Milan Kerslager
Modified: 2013-07-02 19:20 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-18 08:04:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Milan Kerslager 2007-03-29 02:35:05 EDT
The mcedit which is internal editor for mc, does not include EOL at the end of
file (try create file, put one char into it, then save & close and thet try to
open it in vim - missing oel message will appear - you will have to modify &
save to simply fix ie include EOL).

This is longstanding bug. But a lot of programs simply ignore last
(configuration) line if there is no EOL at the end of file. Also this is normal
to put EOL at the end of file in any UNIX.
Comment 1 Tomas Heinrich 2007-04-05 18:30:30 EDT
i would say that this is rather a feature than a bug. if you want an eol 
(newline), just type in one.
Comment 2 Milan Kerslager 2007-04-05 19:48:06 EDT
In Unix all text files should have EOL at the very end of file.
Many programs (if not all) in FC6 just ignore the last line without EOL.
VI (or ViM or any other Unix editor) always put EOL at the end of file and this
is correct behaviour.
Comment 3 Tomas Heinrich 2007-04-06 05:39:22 EDT
emacs, joe, mcedit don't.
there is no way to tell if the file is an ordinary text file, the user should 
decide. one more keystroke is not so much effort.
Comment 4 Jindrich Novy 2007-04-06 08:42:08 EDT
The ending EOL is a feature which is better to be proposed on the mc upstream
mailing list as I'm sure we don't want to differ here from other distros. It
should definitely be configurable.
Comment 5 Jindrich Novy 2007-06-18 08:04:02 EDT
Closing NOTABUG since it's a feature.

A possible downstream fix would introduce regression.

Note You need to log in before you can comment on or make changes to this bug.