patching a file with blanks in the name

Chuck Swiger cswiger at mac.com
Fri Jun 10 20:17:34 GMT 2005


Mikhail Teterin wrote:
> How does one make a patch for a while, that has blanks in the path:
> 
> --- foo bar/meow~	Fri Mar 11 09:00:49 2005
> +++ foo bar/meow	Fri Jun 10 12:17:22 2005
> -	a = 0;
> +	a = 1;
> 
> With the above example, patch searches only for `foo', then gives up and asks 
> for help. I tried quoting the entire file name and escaping the blanks with 
> backslashes -- neither method works... Any ideas? Thanks!

There was a discussion and maybe even a fix proposed for this issue on one of 
the GNU lists, probably <bug-gnu-utils at gnu.org>?  Anyway, I don't think the 
current release version of patch will handle paths containing spaces...

-- 
-Chuck


More information about the freebsd-questions mailing list