← Commit list

9c87b3ef80

Viktor Szakats
Viktor Szakats
2025-11-12
SUCCESS Duration: 153s

Subject

OS400/makefile.sh: fix shellcheck warning SC2038 differently

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

packages/OS400/makefile.sh+4 -1
@@ -35,7 +35,10 @@ cd "${TOPDIR}" || exit 1
# Make sure all files are UTF8-encoded.
-find "${TOPDIR}" -type f -print0 | xargs -0 ls -S -- | while read -r CCSID FILE
+# Qshell does not support -print0. ls -S has a non-POSIX meaning.
+# https://www.ibm.com/docs/en/i/7.1.0?topic=qshell-command-language
+# shellcheck disable=SC2038
+find "${TOPDIR}" -type f | xargs 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)"