Set also shell because the xz*.in files start with '#!@POSIX_SHELL@'.
SC1003 and SC2016 are only info messages, not warnings. Several other
shellcheck info messages remain. They are safe to ignore, but I didn't
want to disable them now.
Partially-fixes: https://github.com/tukaani-project/xz/issues/174
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
+# shellcheck shell=sh disable=SC1003,SC2016
+
@enable_path_for_scripts@
#SET_PATH - This line is a placeholder to ease patching this script.
printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
exit 2;;
esac
+ # The FILE variable is used with eval, and shellcheck doesn't see that.
+ # shellcheck disable=SC2034
case $1 in
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst | *[-.]lz4)
FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ24]*$'`;;
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
+# shellcheck shell=sh disable=SC1003,SC2016
+
@enable_path_for_scripts@
#SET_PATH - This line is a placeholder to ease patching this script.
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
+# shellcheck shell=sh disable=SC2089,SC2090
+
@enable_path_for_scripts@
#SET_PATH - This line is a placeholder to ease patching this script.
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
+# shellcheck shell=sh
+
@enable_path_for_scripts@
#SET_PATH - This line is a placeholder to ease patching this script.