We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e0b4d commit 9c87b3eCopy full SHA for 9c87b3e
packages/OS400/makefile.sh
@@ -35,7 +35,10 @@ cd "${TOPDIR}" || exit 1
35
36
# Make sure all files are UTF8-encoded.
37
38
-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.
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
42
do if [ "${CCSID}" != 1208 ]
43
then CMD="CPY OBJ('${FILE}') TOOBJ('${FILE}') FROMCCSID(*OBJ)"
44
CMD="${CMD} TOCCSID(1208) DTAFMT(*TEXT) REPLACE(*YES)"
0 commit comments