bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Feature request (patch): ignore requested members missing


From: Pavel Raiskup
Subject: Re: [Bug-tar] Feature request (patch): ignore requested members missing in archive
Date: Mon, 23 Jun 2014 11:01:11 +0200
User-agent: KMail/4.12.5 (Linux/3.14.7-200.fc20.x86_64; KDE/4.12.5; x86_64; ; )

Hello Vladimir,

On Monday 23 of June 2014 01:22:16 Vladimir A. Pavlov wrote:
> It's sometimes useful to ignore errors tar returns if a requested member
> is not found in archive,

yes, I think this would be useful,

> For example:
> 
> $ touch file
> $ tar -c file | tar -t file

Just a nit, here should be (for readers):

  $ tar -c file | tar -t dir

> tar: Exiting with failure status due to previous errors
> $ echo $?
> 2
>
> The attached patch implements a new option
> --ignore-missing/--no-ignore-missing which allows the behavior wanted:

I don't like the '--ignore-missing' approach.  That adds another
non-symetric option to tar.  We have the '--ignore-failed-read' option
which works for archive creation and --ignore-missing works just for
archive extraction.

Pavel




reply via email to

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