[bug #66965] Multiple -files0-from args overwrite each other

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Update of bug #66965 (group findutils):

                  Status:                    None => Working as Intended
             Assigned to:                    None => berny

    _______________________________________________________

Follow-up Comment #1:

Thanks for the report.
However, it is quite common in the GNU world that an option with
another argument overwrites the one passed first.


ls --sort=time --sort=size


There's also another example for a tool having a --files0-from=FILE option:

$ printf b > b
$ printf a > a
$ du --files0-from=a --files0-from=b
4	b
$ du --files0-from=b --files0-from=a
4	a


In that regard, the behavior might be surprising, yet IMO the
implementation in GNU find(1) is fine.
In contrast, things might get more complicated - at least in the
implementation - if find(1) would accept and process more given files e.g. for
'-files0-from - -files0-from -' or even '-files0-from - -files0-from
/dev/stdin'.  Let's keep it simple.

As such, I'm meanwhile setting this issue to "working as intended".

I only see that the current behavior is not explicitly documented.  I consent
we should do that.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66965>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ+rpbgAKCRCqLAuaBUf3
TvjdAQC0gKba9EOduksacCA+yVtejcn82v0isFMEYfIRAGX8lAEA+JXBx8ZfZaVK
9EWknHmMjrz2Nvi2umMVuZIUXBnXBQA=
=uTxp
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.