bugGNU patch - Bugs: bug #27264, Failure messages should come out...

 
 

bug #27264: Failure messages should come out from stderr

Submitter:  Jari Aalto <jaalto>
Submitted:  Sun 16 Aug 2009 06:23:35 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sun 23 Jun 2019 12:40:18 AM UTC, comment #1: 

It's an interesting idea, though I am not sure if this is a good way to divide the output. The patch command already uses stderr for problems internal to the program itself. In other words stderr shows the status of patch itself while stdout displays information regarding the files being worked on.

If problems with the files being worked on are moved to stderr then they will mix with patch's own internal warnings while only "good" reports will print to stdout. That seems more messy rather than less, in my opinion.

This seems like a situation where output should be filtered and divided by existing UNIX utilities rather than by the program itself. Something like "patch -p2 < my.diff | tee all.log | grep FAIL > bad.log"

Follow-up thoughts? Opinions?

Jesse <newguy>
Sun 16 Aug 2009 06:23:35 PM UTC, original submission:  

Cf. http://bugs.d ... an.org/541855

Package: patch
Version: 2.5.9-5
Severity: minor


It would be helpful if failure messages were displayed on stderr, not stdout to filter the messages

    Hunk #5 FAILED at 220.
    1 out of 6 hunks FAILED -- saving rejects to file arch/sh/kernel/time_32.c.rej

An example:

   patch -p2 < *.diff > good.log 2> bad.log

Jari Aalto <jaalto>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by newguy (Posted a comment)
  • -email is unavailable- added by jaalto (Submitted the item)
  •  

    Votes

    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.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code