From: Viktor Szakats Date: Wed, 12 Nov 2025 08:50:10 +0000 (+0100) Subject: OS400/makefile.sh: fix shellcheck warning SC2038 differently X-Git-Tag: rc-8_18_0-1~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c87b3ef80910e7985e24ac30f7de4772e3afbbe;p=thirdparty%2Fcurl.git OS400/makefile.sh: fix shellcheck warning SC2038 differently Reported-by: Patrick Monnerat Bug: https://github.com/curl/curl/pull/19451#discussion_r2517335957 Follow-up to af5a1647afa8aaf7cafc1e87af529a4cd48cb240 #19451 Closes #19482 --- diff --git a/packages/OS400/makefile.sh b/packages/OS400/makefile.sh index b40094afd6..df47a7441e 100755 --- a/packages/OS400/makefile.sh +++ b/packages/OS400/makefile.sh @@ -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)"