]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
OS400/makefile.sh: fix shellcheck warning SC2038
authorViktor Szakats <commit@vsz.me>
Mon, 10 Nov 2025 15:54:57 +0000 (16:54 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 10 Nov 2025 17:52:29 +0000 (18:52 +0100)
Also:
- OS400/makefile.sh: use end-of-options marker in xargs command.
- OS400/make-tests.sh: drop warning suppression.
  Seems to not trigger anymore as of shellcheck 0.11.0

Closes #19451

packages/OS400/make-tests.sh
packages/OS400/makefile.sh

index 3a2125965cfc9774b1c1960440c5cec9e7ef1641..4ddc537487b2f656cf8683968343b786251f72f5 100755 (executable)
@@ -58,7 +58,7 @@ build_all_programs()
 
                 for FLAG in ${PGMCFLAGS}
                 do      case "${FLAG}" in
-                        -D?*)   # shellcheck disable=SC2001
+                        -D?*)
                                 DEFINE="$(echo "${FLAG}" | sed 's/^..//')"
                                 PGMDFNS="${PGMDFNS} '${DEFINE}'"
                                 ;;
index 7f75845215895b2fcc4d2363efa928cc3781dc3c..b40094afd66253592a03abec941568ad44a90243 100755 (executable)
@@ -35,8 +35,7 @@ cd "${TOPDIR}" || exit 1
 
 #       Make sure all files are UTF8-encoded.
 
-# shellcheck disable=SC2038
-find "${TOPDIR}" -type f -print | xargs ls -S | while read -r CCSID FILE
+find "${TOPDIR}" -type f -print0 | xargs -0 ls -S -- | while read -r CCSID FILE
 do      if [ "${CCSID}" != 1208 ]
         then    CMD="CPY OBJ('${FILE}') TOOBJ('${FILE}') FROMCCSID(*OBJ)"
                 CMD="${CMD} TOCCSID(1208) DTAFMT(*TEXT) REPLACE(*YES)"