Debian Bug report logs -
#325005
findutils: xargs switch -n and -i
Reported by: Daniel Higgins <dhiggins@netc.net>
Date: Thu, 25 Aug 2005 14:48:14 UTC
Severity: normal
Found in version findutils/4.2.24-1
Done: Andreas Metzler <ametzler@bebt.de>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#325005; Package findutils.
(full text, mbox, link).
Acknowledgement sent to Daniel Higgins <dhiggins@netc.net>:
New Bug report received and forwarded. Copy sent to Andreas Metzler <ametzler@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: findutils
Version: 4.2.24-1
in the unstable version of xargs, the -n switch sometimes fail when
combined with -i
echo 1 2 3| xargs -iX -n1 echo X
1 2 3
expected output:
1
2
3
-i also fails in some cases:
echo 1 2 3| xargs -iX -n2 echo X
X 1 2
X 3
expected output
1 2
3
echo 1 2 3| xargs -iX -n3 echo X
X 1 2 3
expected output
1 2 3
Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#325005; Package findutils.
(full text, mbox, link).
Acknowledgement sent to Andreas Metzler <ametzler@debian.org>:
Extra info received and forwarded to list.
(full text, mbox, link).
Message #10 received at 325005@bugs.debian.org (full text, mbox, reply):
On 2005-08-25 Daniel Higgins <dhiggins@netc.net> wrote:
> Package: findutils
> Version: 4.2.24-1
> in the unstable version of xargs, the -n switch sometimes fail when
> combined with -i
> echo 1 2 3| xargs -iX -n1 echo X
[ explained in the -done messages for http://bugs.debian.org/325001 ]
> -i also fails in some cases:
> echo 1 2 3| xargs -iX -n2 echo X
> X 1 2
> X 3
> expected output
> 1 2
> 3
> echo 1 2 3| xargs -iX -n3 echo X
> X 1 2 3
> expected output
> 1 2 3
-i and -n <k> with k greater than 1 are mutually exclusive, i.e. the
last one specified wins, I just fail to find the documentation for
that currently. Perhaps tomorrow.
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
Reply sent
to Andreas Metzler <ametzler@bebt.de>:
You have taken responsibility.
(Sun, 01 Jan 2017 12:45:05 GMT) (full text, mbox, link).
Notification sent
to Daniel Higgins <dhiggins@netc.net>:
Bug acknowledged by developer.
(Sun, 01 Jan 2017 12:45:05 GMT) (full text, mbox, link).
Message #15 received at 325005-done@bugs.debian.org (full text, mbox, reply):
On 2005-08-25 Andreas Metzler <ametzler@debian.org> wrote:
> On 2005-08-25 Daniel Higgins <dhiggins@netc.net> wrote:
> > Package: findutils
> > Version: 4.2.24-1
[...]
> > -i also fails in some cases:
> > echo 1 2 3| xargs -iX -n2 echo X
> > X 1 2
> > X 3
> > expected output
> > 1 2
> > 3
> > echo 1 2 3| xargs -iX -n3 echo X
> > X 1 2 3
> > expected output
> > 1 2 3
> -i and -n <k> with k greater than 1 are mutually exclusive, i.e. the
> last one specified wins, I just fail to find the documentation for
> that currently. Perhaps tomorrow.
Well, a couple of years later:
[1] -i[replace-str], --replace[=replace-str]
This option is a synonym for -Ireplace-str if replace-str is
specified. If the replace-str argument is missing, the effect
is the same as -I{}. This option is deprecated; use -I instead.
[2] -I replace-str
Replace occurrences of replace-str in the initial-arguments with
names read from standard input. Also, unquoted blanks do not
terminate input items; instead the separator is the newline
character. Implies -x and -L 1.
[3] -L max-lines
Use at most max-lines nonblank input lines per command line.
Trailing blanks cause an input line to be logically continued on
the next input line. Implies -x.
[1] -i is -I
[2] With -I each input line is taken as one single argument.
[2] -I implies -L1, i.e. [3] only a single line of input is read for
each execution of the program.
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 30 Jan 2017 07:25:44 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Dec 23 16:21:51 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.