From 25d16ccde5228e426f2549ce79f4a4e83e0c1ddc Mon Sep 17 00:00:00 2001 From: Greg Troxel Date: Fri, 4 Jun 2010 19:37:11 -0400 Subject: Don't use non-standard %N with date +. POSIX says that date must support +"specifier" to format dates in various ways and lists a number of specifiers (including %s for seconds since the epoch, used in this script), but it does not specify the use of %N, and %N is not supported by NetBSD's date(1): http://www.opengroup.org/onlinepubs/000095399/utilities/date.html --- regress-driver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress-driver') diff --git a/regress-driver b/regress-driver index 97b96afb..81c615ef 100755 --- a/regress-driver +++ b/regress-driver @@ -6,7 +6,7 @@ # Requires GNU date extensions # Should return an empty blank string if tose are not present. -starttime=`date +"%s.%N" 2>/dev/null` +starttime=`date +"%s" 2>/dev/null` # We need to have the build directory in $PATH to find the new gpsd # in case there is one in $PATH somewhere else in the system. @@ -141,7 +141,7 @@ case $mode in esac # See starttime above -endtime=`date +"%s.%N" 2>/dev/null` +endtime=`date +"%s" 2>/dev/null` if [ "$starttime" -a "$endtime" ] then -- cgit v1.2.1