[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #52137] unexpected behaviour when combining -I and -n
From: |
Andreas Metzler |
Subject: |
[bug #52137] unexpected behaviour when combining -I and -n |
Date: |
Wed, 11 Oct 2017 13:19:24 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #6, bug #52137 (project findutils):
> I squashed the commits into one, and changed the following:
> - use error() rather than fprintf(),
I tried that first but it broke the testsuite because error() always outputs
argv[0] and argv[0] will include the path when run from testsuite. You have
fixed that in config/unix.exp. ;-)
[...]
> - change the test cases to always only have 2 conflicting options,
I am not too happy with that, I can understand *adding* two-option examples
but not replacing the three-case ones.
Your patch introduces an unintended behavior change in respect to "-I REPL
-n1":
xargs release:
(sid)address@hidden:/tmp/FIND/findutils-4.6.0+git+20170828/xargs$ echo a b c
| xargs -I x -n1 echo x z
a b c z
with patch
(sid)address@hidden:/tmp/FIND/findutils-4.6.0+git+20170828/xargs$ echo a b c
| ./xargs -I x -n1 echo x z
x z a b c
cu Andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52137>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/