New review comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/46010#discussion_r1322335132 Comment: I think the only non-portable part is missing a semicolon `;` after `q`. All other parts are portable. Can you try: ` sed -n '/^committer /{s/.*> \([0-9][0-9]*\) [-+][0-9].*/\1/p;q;}'`? If it doesn't work, I would prefer this, instead: ```diff diff --git a/common/environment/setup/git.sh b/common/environment/setup/git.sh index bd72f2eae3..b9a5c692b8 100644 --- a/common/environment/setup/git.sh +++ b/common/environment/setup/git.sh @@ -18,7 +18,7 @@ elif [ -z "${SOURCE_DATE_EPOCH}" ]; then export SOURCE_DATE_EPOCH="$(stat -c %Y ${XBPS_SRCPKGDIR}/${basepkg}/template)" else export SOURCE_DATE_EPOCH=$($XBPS_GIT_CMD -C ${XBPS_DISTDIR} cat-file commit HEAD | - sed -n '/^committer /{s/.*> \([0-9][0-9]*\) [-+][0-9].*/\1/p;q}') + awk '/^commiter .* [-+][0-9]*$/{ print $(NF - 1); exit; }') fi fi ```