diff --git a/winsup/cygwin/mkvers.sh b/winsup/cygwin/mkvers.sh index 5aecb141b..6309c84b1 100755 --- a/winsup/cygwin/mkvers.sh +++ b/winsup/cygwin/mkvers.sh @@ -140,7 +140,8 @@ done | tee /tmp/mkvers.$$ 1>&9 trap "rm -f /tmp/mkvers.$$" 0 1 2 15 if [ -n "$snapshotdate" ]; then - usedate="$(echo $snapshotdate | sed 's/-\\(..:..[^-]*\\).*$/ \1SNP/')" + usedate="$(echo $snapshotdate \ + | sed -e 's/\(....\)\(..\)\(..\)-\(..:..\).*$/\1-\2-\3 \4SNP/')" else usedate="$builddate" fi