bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] [patch v3] Bug / question in tar


From: Paul Eggert
Subject: Re: [Bug-tar] [patch v3] Bug / question in tar
Date: Sat, 29 Mar 2014 13:55:56 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Tim Kientzle wrote:
If you really believe that sending output to /dev/null should not do anything, 
make it a fatal error so people won't rely on it.

That would be silly, as it defeats the whole point of having a /dev/null for output.

At this point we're arguing only about theory, since GNU tar actually does read the files in this case. But in other cases, programs avoid input as an optimization, and that's perfectly all right. For example, 'diff FOO FOO' doesn't read FOO twice, and there's nothing wrong with that. (In fact, 'diff' doesn't read FOO even once.) If GNU tar improved its performance in similar cases, there would be nothing wrong with that either.

It sounds like enough people are misusing GNU tar in the way you describe that, if we improved its performance in this case, we'd need to add a --be-stupid option so that tar would continue to read data that it doesn't need to. (Perhaps you could come up with a better name for the option. :-)



reply via email to

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