Skip to content

fix for the newer xargs (since Jammy)#4

Open
mastier wants to merge 1 commit intocanonical:masterfrom
mastier:master
Open

fix for the newer xargs (since Jammy)#4
mastier wants to merge 1 commit intocanonical:masterfrom
mastier:master

Conversation

@mastier
Copy link
Copy Markdown
Contributor

@mastier mastier commented Oct 8, 2024

For Jammy and Noble the tool got issue with xargs
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
By reading the manual:

  The  options  --max-lines  (-L,  -l), --replace (-I, -i) and --max-args (-n) are mutually exclusive. If some of them are specified at the same time, then xargs will generally use the option specified last on the command line,
  i.e., it will reset the value of the offending option (given before) to its default value.  Additionally, xargs will issue a warning diagnostic on stderr.  The exception to this rule is  that  the  special  max-args  value  1
  ('-n1') is ignored after the --replace option and its aliases -I and -i, because it would not actually conflict.

So the resolution here is just to fix the order of arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant