[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #46815] problem when testing file size
From: |
Bernhard Voelker |
Subject: |
Re: [bug #46815] problem when testing file size |
Date: |
Sun, 10 Jan 2016 20:23:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 01/09/2016 04:41 PM, James Youngman wrote:
> Let's re-open the discussion about what to call the "sane" alternative to
> -size, and implement it this time.
I'm not so enthusiastic, i.e., only 20:80 for adding such a -filesize option.
The question is: what functionality would it provide which could not be
achieved with existing ones? ... and we'd have to say: well, none.
Adding another option would only add complexity to the code (-size vs.
-filesize must be handled, too). And from the user's point of view, I'd
guess it'd be confusing too: "2 options for filtering by size? Huh? Which
one should I take?". Finally it doesn't help to clarify the situation
with the -size option - which is specified by POSIX and therefore also
available in other implementations.
I'd rather suggest to re-work the --help output to explain every single
option rather than just mentioning them as today. The usage text via --help
is the first thing a user tries to read when {s,}he's unsure. With the
longer format, we'd have the chance to avoid confusion at the first place
the user is looking for.
And IMHO using a text based on that of the POSIX spec for the -size option
would be the best I could think of.
Tests:
...
-regex PATTERN Match files by regular expression PATTERN
-size N[bcwkMG] Match if the file size in bytes, divided by 512 and
rounded up to the next integer, is N. Use suffix 'c'
for a comparison with bytes
-true Always true
...
WDYT?
Have a nice day,
Berny
- [bug #46815] problem when testing file size, anonymous, 2016/01/05
- [bug #46815] problem when testing file size, James Youngman, 2016/01/05
- [bug #46815] problem when testing file size, anonymous, 2016/01/08
- [bug #46815] problem when testing file size, Dale Worley, 2016/01/08
- [bug #46815] problem when testing file size, James Youngman, 2016/01/09
- Re: [bug #46815] problem when testing file size,
Bernhard Voelker <=
- Re: [bug #46815] problem when testing file size, James Youngman, 2016/01/10
- Re: [bug #46815] problem when testing file size, Assaf Gordon, 2016/01/10
- Re: [bug #46815] problem when testing file size, Bernhard Voelker, 2016/01/10
- Re: [bug #46815] problem when testing file size, Martin Steigerwald, 2016/01/13
- Re: [bug #46815] problem when testing file size, Martin Steigerwald, 2016/01/13