mainGNU M4 - Support: sr #102730, m4 exits with a status == 0 when...

 
 

sr #102730: m4 exits with a status == 0 when an include file is not found

Submitter:  None
Submitted:  Wed 14 Jan 2004 01:35:07 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  Done
Privacy:  Public Assigned to:  ericb
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Nov 2006 01:57:05 PM UTC, comment #2: 

Fixed in 1.4.6.

Eric Blake <ericb>
Group administrator
Mon 29 May 2006 03:57:01 PM UTC, comment #1: 

Sorry for the delayed response, the web forum has not been as actively tracked as the -email is unavailable- mailing list.

This sounds like a definite bug.  Any time m4 issues a warning to stderr, it should exit with non-zero status (note that this applies to include, but not to sinclude).  I'll take a further look into it.

Eric Blake <ericb>
Group administrator
Wed 14 Jan 2004 01:35:07 AM UTC, original submission:  

I'm probably just being stupid but why doesn't m4 exit when an include fails with a status other than zero?  This causes make to go its merry way which of course is not what I would prefer.
This is easy to reproduce.
create a file called AAA with the following line
include(foobar)

run it

[5:21pm atlas1 brad/Cyclone2/config 29] m4 AAA
AAA:1: m4: Cannot open foobar: No such file or directory
[5:33pm atlas1 brad/Cyclone2/config 30] echo $status
0
[5:34pm atlas1 brad/Cyclone2/config 31] cat AAA
include(foobar)


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-11-21 ericb Open/ClosedOpen Closed
2006-11-21 ericb StatusConfirmed Done
2006-05-29 ericb Severity1 - Wish 4 - Important
    StatusNone Confirmed
    Assigned toNone ericb
    Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.13-0329.
Corresponding source code