[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-tar] Re: [Bug-tar] file name with backslash is not archived

From: Paul Eggert
Subject: [Help-tar] Re: [Bug-tar] file name with backslash is not archived
Date: Tue, 02 Nov 2010 16:29:32 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101027 Thunderbird/3.0.10

On 11/02/10 14:04, Sergey Poznyakoff wrote:
> I would ask you to keep that patch in stash for a
> while, and return to that question after the release.

Sure, that's fine.

In the meantime I'll CC: this to help-tar, so that people there
are aware of the situation.  Briefly, the proposal is to change
GNU tar so that:

tar -cf ../archive.tar *

works regardless of the file names that "*" expands to.  Currently,
if one of the file names contains backslash-backslash, or backslash-n,
those sequences are interpreted as backslash and as newline,
respectively, which means the "tar" command won't behave as

This behavior was recently pointed out as a bug here:

with a followup thread here:

The current 'tar' behavior has been present, as far as I know,
for decades.  However, it was a surprise to me (a longtime
GNU tar maintainer and contributor) when it was pointed out a
few days ago, and it cannot be well known.  The behavior breaks
some programs that use GNU tar, such as file-roller, and it's
incompatible with non-GNU versions of tar.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]