bugGNU patch - Bugs: bug #28136, No longer asked for input filename...

 
 

bug #28136: No longer asked for input filename in 2.6

Submitted by:  None
Submitted on:  Mon 30 Nov 2009 10:49:34 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 01 Dec 2009 05:23:12 PM UTC, comment #1:

I believe this is documented in the NEWS :
http://git.savannah.gnu.org/cgit/patch.git/tree/NEWS

  • Unless a filename has been specified on the command line, look only

for filenames in the patch until one has been found. This prevents
patch from tripping over garbage that isn't a patch. When conforming
to POSIX, this behavior is turned off and patch will ask for a
filename if none is found.

You may want to look at the man page and the --posix option.

Anonymous
Mon 30 Nov 2009 10:49:34 PM UTC, original submission:

If I have a patch file which non-existent filenames, patch 2.5.4 asks me with the following prompt "File to patch:"

patch 2.6 does not do that anymore. To reproduce, please see attached diff file and do this:
cd /tmp
patch < p

Note that I'm not prompted and patch creates an empty orig file as well as a rej file.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #19167:  p added by None (144B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by agruen (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Dec 2009 02:46:01 PM UTCagruenStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Mon 30 Nov 2009 10:49:34 PM UTCNoneAttached File-=>Added p, #19167

    Back to the top


    Powered by Savane 3.1-cleanup1