aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2016-10-12 15:49:20 +0000
committerEd Maste <emaste@FreeBSD.org>2016-10-12 15:49:20 +0000
commitb9d2be5c58c09ec7ec717ad548fe66f1fa2167ff (patch)
tree9b7bbf1eeb6930bbc75a7609152b72f4ca5efe2e /gnu
parent0fd28b2c963607084c1ee96354810e31cea4ff99 (diff)
Notes
Diffstat (limited to 'gnu')
-rwxr-xr-xgnu/usr.bin/groff/mdate.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/usr.bin/groff/mdate.sh b/gnu/usr.bin/groff/mdate.sh
index 70a052abc0469..03a4a090685ee 100755
--- a/gnu/usr.bin/groff/mdate.sh
+++ b/gnu/usr.bin/groff/mdate.sh
@@ -4,6 +4,5 @@
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)