LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-05-2003, 11:11 AM   #1
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 30
"No new line at end of file"


I see that quite often and yes, I understand the message. But I created this thread to ask where it came from. Why does gcc prints out that warning.

To me it doesn't really serve a purpose - especially since I haven't seen any errors due to a missing new line so far.

Any ideas?
 
Old 12-05-2003, 11:21 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
Unix utilities often read in the entrie file, then process it, eg., sort, gcc.

The old presumption was that the file was truncated or corrupted- this used to happen a lot when disks went bad on a monthly basis 25 years ago. The EOF marker for a text file is ASCII 26. So if one bit of a real byte got twiddled, an EOF could appear where it was not supposed to be.

That's the origin of the warning.
 
Old 12-05-2003, 12:55 PM   #3
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Original Poster
Rep: Reputation: 30
thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba "badly formed line in configuration file" maerong Linux - Networking 5 02-02-2005 05:19 PM
What does this mean? suSE9.1 ATI "/bin/sh: line 1: scripts/modpost: No such file or" op_stager Linux - Hardware 0 09-29-2004 11:28 PM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM
Oracle 10g says "end of file" cyclic redundancy error mmjulian Linux - Software 2 05-22-2004 02:57 AM
Can I redirect script output to a file without ">> $LOGFILE" at the end of each line davee Linux - General 1 12-19-2003 05:01 AM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration