Skip to content

Commit 9c87b3e

Browse files
committed
OS400/makefile.sh: fix shellcheck warning SC2038 differently
Reported-by: Patrick Monnerat Bug: curl#19451 (comment) Follow-up to af5a164 curl#19451 Closes curl#19482
1 parent b2e0b4d commit 9c87b3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/OS400/makefile.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ cd "${TOPDIR}" || exit 1
3535

3636
# Make sure all files are UTF8-encoded.
3737

38-
find "${TOPDIR}" -type f -print0 | xargs -0 ls -S -- | while read -r CCSID FILE
38+
# Qshell does not support -print0. ls -S has a non-POSIX meaning.
39+
# https://www.ibm.com/docs/en/i/7.1.0?topic=qshell-command-language
40+
# shellcheck disable=SC2038
41+
find "${TOPDIR}" -type f | xargs ls -S -- | while read -r CCSID FILE
3942
do if [ "${CCSID}" != 1208 ]
4043
then CMD="CPY OBJ('${FILE}') TOOBJ('${FILE}') FROMCCSID(*OBJ)"
4144
CMD="${CMD} TOCCSID(1208) DTAFMT(*TEXT) REPLACE(*YES)"

0 commit comments

Comments
 (0)