[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0022299: Resolve conflicting 'xargs' argument
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0022299: Resolve conflicting 'xargs' arguments |
Date: |
Tue, 19 Oct 2021 15:30:02 -0400 (EDT) |
branch: master
commit 0022299cb5cc4b7970a2bd3618632819f002fa5f
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Resolve conflicting 'xargs' arguments
GNU findutils-4.8.0 warns:
xargs: warning: options --max-args and --replace/-I/-i are mutually
exclusive, ignoring previous --max-args value
Avoided the warning by removing the superfluous '--max-args=1'.
---
gwc/develop1.txt | 2 +-
lmi_setup_43.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 7478bf5..a5b769a 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -236,7 +236,7 @@ for z in $(git diff HEAD@{1} --name-only) ; do touch
--reference=/opt/lmi/src/lm
for z in *(m-1) ; do touch --reference=$z /opt/lmi/free/src/lmi/$z; done
# Alternatively:
-find . -path ./.git -prune -o -type f -print0 | xargs --null --max-args=1
--max-procs="$(nproc)" --replace='{}' touch '--reference=/opt/lmi/src/lmi/{}'
'{}'
+find . -path ./.git -prune -o -type f -print0 | xargs --null
--max-procs="$(nproc)" --replace='{}' touch '--reference=/opt/lmi/src/lmi/{}'
'{}'
# Third screen: only for building and testing
diff --git a/lmi_setup_43.sh b/lmi_setup_43.sh
index e833b20..0394a7a 100755
--- a/lmi_setup_43.sh
+++ b/lmi_setup_43.sh
@@ -139,7 +139,7 @@ git clone git://git.savannah.nongnu.org/lmi.git \
cd lmi || { printf 'failed: cd\n'; exit 3; }
find . -path ./.git -prune -o -type f -print0 \
- | xargs --null --max-args=1 --max-procs="$(nproc)" --replace='{}' touch
'--reference=/opt/lmi/src/lmi/{}' '{}'
+ | xargs --null --max-procs="$(nproc)" --replace='{}' touch
'--reference=/opt/lmi/src/lmi/{}' '{}'
stamp=$(date -u +'%Y%m%dT%H%M%SZ')
echo "$stamp $0: Ran system test for '$(whoami)'." | tee /dev/tty
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 0022299: Resolve conflicting 'xargs' arguments,
Greg Chicares <=