From owner-freebsd-stable Wed Apr 11 8:47:25 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 7E86B37B424 for ; Wed, 11 Apr 2001 08:47:21 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id IAA39265; Wed, 11 Apr 2001 08:45:57 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200104111545.IAA39265@gndrsh.dnsmgr.net> Subject: Re: bug in tar exclude file handling? In-Reply-To: <20010411144307.A67926@dogma.freebsd-uk.eu.org> from j mckitrick at "Apr 11, 2001 02:43:07 pm" To: jcm@FreeBSD-uk.eu.org (j mckitrick) Date: Wed, 11 Apr 2001 08:45:57 -0700 (PDT) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a feature, and a needed one. Understand that a space is a legal filename character in a file under Unix: br1.chatusa.com:root{119}# touch "X " br1.chatusa.com:root{120}# touch "X " br1.chatusa.com:root{122}# ls -lag X* -rw-r--r-- 1 root wheel 0 Apr 11 15:42 X -rw-r--r-- 1 root wheel 0 Apr 11 15:43 X If tar was to strip off spaces, even trailing or leading spaces from an exclude file list it would not allow full functionality and then we would have a bug. > > Perhaps I have overlooked something, but in writing a recent backup script, > I ran across what might be a bug. In the 'exclude' file you may use with > tar, if there is ANY whitespace on the lines after the file names, tar will > not match them. This caused me untold grief when 2 apparently identical > exclude files produced entirely different results. One worked, the other > didn't. At the least, maybe a note could be added to the man page. Or > would this be considered a bug? Or is it a 'feature' designed to protect > backward compatibility or interaction with other progs? > > Jonathon > -- > "One World, One Web, One Program." - Microsoft Promotional Ad. > "Ein Volk, Ein Reich, Ein Fuhrer." - Adolf Hitler > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message