@stefano
OpenBSD works (although my #bsdams machine froze from time to time - what is annoying)
macOS with bash from homebrew (5.2) also works (with env var).
macOS with default bash (3.2) doesn’t work

Error message
scripts/post.sh: line 293: syntax error near unexpected token `;;'

what is strange, because it seems to be inside standard case/esac block