New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/23485#issuecomment-663922330 Comment: - `printf(3)` is incorrect if help/version contains `%`, either use `puts(3)` instead or ```cpp printf("%s", $arg); ``` - Add a newline between include and main - In case you don't know, we can quote EOF to save extra quoting in here doc. ```sh if [ "$CROSS_BUILD" ]; then hostmakedepends+=" tcc" post_patch() { cpp -dM src/fatsort.c | grep '#define INFO' > man/info.h cat > man/fatsort.sh <<-'EOF' #!/bin/sh case $1 in "--help") arg="INFO_OPTION_HELP" ;; "--version") arg="INFO_OPTION_VERSION" ;; esac echo '#include "info.h"' "int main(){return printf(\"%s\", $arg) > 0;}" | tcc -run - EOF chmod 755 man/fatsort.sh vsed -i man/Makefile -e 's|../src/fatsort|./fatsort.sh|' } fi ```