bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] --no-overwrite-dir implies that tar will overwrite files w


From: Remi Broemeling
Subject: Re: [Bug-tar] --no-overwrite-dir implies that tar will overwrite files when extracting?
Date: Mon, 10 Aug 2015 08:53:31 -0600

Hi Jean-Louis,

Thanks for the response -- I'm not clear on why these options cannot be used together?  Unless --keep-old-files effectively implies --no-overwrite-dir already ("don't replace existing files when extracting, treat them as errors" may imply "preserve metadata of existing directories").  Certainly it may be the case that the first implies the second, but the two options don't strike me as conflicting either (they seem to say roughly the same thing).

You're right that updating tar to warn/error when conflicting options are used; in addition I'd suggest adding text to the man-page/documentation explaining that --no-overwrite-dir is not necessary (and is, in fact, an error) when --keep-old-files is in-use?

Thanks!

Remi

On Mon, Aug 10, 2015 at 5:38 AM, Jean-Louis Martineau <address@hidden> wrote:
Remi,

--keep-old-files and --no-overwrite-dr can't be used at the same time.

tar should print a warning when mutually exclusive options are used instead of ignoring some of them,

Jean-Louis

reply via email to

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