From owner-freebsd-questions@FreeBSD.ORG Fri Jun 10 20:32:22 2005 Return-Path: X-Original-To: questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 035B616A41F for ; Fri, 10 Jun 2005 20:32:22 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6405B43D1F for ; Fri, 10 Jun 2005 20:32:21 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: (qmail 665 invoked from network); 10 Jun 2005 20:32:20 -0000 Received: from aldan.algebra.com ([216.254.65.224]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 10 Jun 2005 20:32:20 -0000 Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j5AKWGw4011955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2005 16:32:18 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id j5AKWAtS056158 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 10 Jun 2005 16:32:11 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Chuck Swiger Date: Fri, 10 Jun 2005 16:32:05 -0400 User-Agent: KMail/1.7.2 References: <200506101239.17128.mi+mx@aldan.algebra.com> <42A9F55C.1060501@mac.com> In-Reply-To: <42A9F55C.1060501@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506101632.05306.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV devel-20050525/922/Fri Jun 10 09:58:19 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: stable@FreeBSD.org, questions@FreeBSD.org Subject: Re: patching a file with blanks in the name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 20:32:22 -0000 > > --- 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 ? Anyway, I don't think > the current release version of patch will handle paths containing spaces... Strange... I can't imagine the fix being that complex... Instead of cutting the file-name on the first blank, I'd cut it on the last tab. People with tabs in the filenames would have to append one more tab at the end. Regular, diff-generated patches (vast majority of them all) would not be affected at all, as they always have timestamps (after a tab). I could do the coding -- would anyone be interested in comitting it? Some of the port-ed software (like the blasted java/eclipse) has blanks in directory names :-( -mi