[bug #65998] xargs strange behavior

anonymous <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?65998>

                 Summary: xargs strange behavior
                   Group: findutils
               Submitter: None
               Submitted: Wed 17 Jul 2024 12:34:25 PM UTC
                Category: xargs
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Andrejka
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 17 Jul 2024 12:34:25 PM UTC By: Anonymous
Hi, may be this is not a bug, but seems strage to me, as if xargs parses first
word ('-e', '-n' from example) as it's own option...

$ echo '-e test1 -e test2' | xargs
test1 -e test2

$ echo '-n test1 -n test2' | xargs
test1 -n test2$

#There is no 'z' xargs option
$ echo '-z test1 -z test2' | xargs
-z test1 -z test2

$ echo '-e test1 -e test2' | xargs -I '{}' echo '{}'
-e test1 -e test2

Versions:
findutils-4.9.0-2.fc37.aarch64
bash-5.2.21-1.fc37.aarch64

$ find --version
find (GNU findutils) 4.9.0
....SKIP....

$ bash --version
GNU bash, version 5.2.21(1)-release (aarch64-redhat-linux-gnu)
....SKIP....








    _______________________________________________________

Reply to this item at:

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

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

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZpe6VQAKCRCqLAuaBUf3
TkorAQCRnYI7ebtr0arg7qRbog2lB4Sh31Mt7rXvVx/IhZNdEgEA8Bdy4N+EH6nW
EHBLnuIL/BS4XU9obXrWR9wQT+pTfwU=
=KP3Z
-----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.