[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch problem
From: |
Wei Zheng |
Subject: |
patch problem |
Date: |
Thu, 6 Dec 2001 17:40:35 -0800 (PST) |
Hi,
Is this a bug?
If a patch file "P" contains patches for two files "Orig_a" & "Orig_b",
and if I type a command:
patch Orig_a P,
The following will come out as a result of the command:
***************************************************************
patching file `Orig_a'
can't find file to patch at input line xxx
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|*** ../Orig_b Thu Sep 27 22:11:50 2001
|--- Orig_b Thu Sep 27 22:15:47 2001
--------------------------
File to patch:
***************************************************************
I think if one specifies the original file and the patch file, even if the
patch file is for two files, only one file should be patched, and no error
should be reported.
This will be worse if a user want to write a script to do the patch.
Or is there any command line parameter I should use to avoid this problem?
I have checked "patch --help" but couldn't find a solution. I need to
apply a lot of patches so I want to write a script.
Thanks.
Wei
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- patch problem,
Wei Zheng <=