[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Listing FreeBSD extentions as such in utilities
Hey,
I was working on a script to be used on Solaris, FreeBSD, and
Linux. Quickly I noticed that Linux and Solaris seem to lack
a -v option. Further checking on the OpenGroup website showed
that POSIX date does not support options we have in date(1).
Patch attached, good/bad? Perhaps "Tom, you are wasting our
time?"
--
Tom Rhodes
%cvs diff -u date.1
Index: date.1
===================================================================
RCS file: /home/ncvs/src/bin/date/date.1,v
retrieving revision 1.72
diff -u -r1.72 date.1
--- date.1 13 Feb 2005 22:25:09 -0000 1.72
+++ date.1 31 Oct 2005 17:11:53 -0000
@@ -32,7 +32,7 @@
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\" $FreeBSD: src/bin/date/date.1,v 1.72 2005/02/13 22:25:09 ru Exp $
.\"
-.Dd August 9, 2004
+.Dd October 31, 2005
.Dt DATE 1
.Os
.Sh NAME
@@ -419,6 +419,20 @@
.Nm
utility is expected to be compatible with
.St -p1003.2 .
+The
+.Fl d ,
+.Fl f ,
+.Fl j ,
+.Fl n ,
+.Fl r ,
+.Fl t ,
+and
+.Fl v
+options are all extentions to the standard.
+The
+.Xr sh 1
+shell understands environment variables such as
+.Dl LC_TIME=C .
.Sh HISTORY
A
.Nm