Hi!
----
Attached is a small patch ("ksh93_sccs_patch001.diff") from April which
fixes a small problem with Sun's SCCS (version control software used for
OS/Net).
SCCS replaces all "%H%" strings with another value during checkout,
breaking the builtin "date" command in this case. The attached patch
fixes this via splitting "%H%" into two string literals (e.g. "%" "H%")
...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
-------------- next part --------------
Index: common/date.c
===================================================================
--- common/date.c (revision 502)
+++ common/date.c (working copy)
@@ -220,13 +220,19 @@
*argv++ = s;
if (streq(astconf("UNIVERSE", NiL, NiL), "att"))
{
- tmxfmt(buf, sizeof(buf), "%m%d%H%M%Y.%S", now);
+ /* %H% has been split into two pieces to avoid that the
+ * Source Code Control System (SCCS) replaces it with
+ * own values. */
+ tmxfmt(buf, sizeof(buf), "%m%d%" "H%M%Y.%S", now);
if (adjust)
*argv++ = "-a";
}
else
{
- tmxfmt(buf, sizeof(buf), "%Y%m%d%H%M.%S", now);
+ /* %H% has been split into two pieces to avoid that the
+ * Source Code Control System (SCCS) replaces it with
+ * own values. */
+ tmxfmt(buf, sizeof(buf), "%Y%m%d%" "H%M.%S", now);
if (network)
*argv++ = "-n";
if (tm_info.flags & TM_UTC)