bugmake - Bugs: bug #11855, deleting .INTERMEDIATE files, make...


bug #11855: deleting .INTERMEDIATE files, make pretends to be using "rm" but isn't

Submitter:  None
Submitted:  Sat 05 Feb 2005 11:54:42 AM UTC
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.80 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sat 05 Feb 2005 11:54:42 AM UTC, original submission:  

I came across this when setting the RM variable and watching
make remove an intermediate file, so far so good.
But the make announced that it was doing this like so:

rm some_file.x

So in this case, I thought, setting RM has no effect, and
that instead the system command "rm" was used.

Further inspection reveals a call to unlink(2),
status = unlink (f->name);
in file.c, remove_intermediates (sig), and later,
    fputs ("rm ", stdout);

So it does not use the system command "rm".
Now even if there is reason to not use RM in the case of
intermediate files (?), could make announce what it is
actually doing, so to speak, instead of pretending it is
using "rm", perhaps printing "unlinking", or "deleting"
as in the info file, or somesuch?
 This could help remove unnecessary confusion.

Is it worthwhile mentioning the "limited reach" of setting
RM, in make.texi?

Georg    -email is unavailable-



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

Attach Files:

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.


Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2005-05-21 psmith Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code