Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2001 08:45:57 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
To:        jcm@FreeBSD-uk.eu.org (j mckitrick)
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: bug in tar exclude file handling?
Message-ID:  <200104111545.IAA39265@gndrsh.dnsmgr.net>
In-Reply-To: <20010411144307.A67926@dogma.freebsd-uk.eu.org> from j mckitrick at "Apr 11, 2001 02:43:07 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104111545.IAA39265>