Index: head/gnu/usr.bin/groff/mdate.sh =================================================================== --- head/gnu/usr.bin/groff/mdate.sh (revision 307149) +++ head/gnu/usr.bin/groff/mdate.sh (revision 307150) @@ -1,9 +1,8 @@ #!/bin/sh # $FreeBSD$ set -e test -r "$1" export LC_ALL=C -changelog_date=$(sed -E -n 's/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*$/\1/p' "$1" |\ - head -n 1) +changelog_date=$(sed -E -n '1s/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*$/\1/p' "$1") echo $(date -j -f %Y-%m-%d +"%e %B %Y" $changelog_date)