
org.sonar.l10n.shellcheck.rules.shellcheck.SC2267.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-shellcheck-plugin Show documentation
Show all versions of sonar-shellcheck-plugin Show documentation
ShellCheck plugin for SonarQube
The newest version!
GNU xargs -i is deprecated in favor of -I{}
Problematic code
# Implicit replacement string
xargs -i ls {}
# Explicit replacement string
xargs -imyfilename ls myfilename
Correct code
xargs -I {} ls {}
xargs -I filename ls filename
Rationale
xargs -i
is a GNU specific option. It has been deprecated in favor of the POSIX standard option -I
.
Note that -i
will implicitly use {}
as a token if nothing is specified, while -I
requires it to be explicit.
Exceptions
None.
Related resources
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!
© 2015 - 2025 Weber Informatics LLC | Privacy Policy