Re: SCCS Question
Posted in 1999
I always used variants on: fmtdate=$(date '+%Y''%m%d') In the middle of string are two immediately adjacent single quotes. Since none of the SCCS keywords is lower case, you don't have to worry about %m%, though I usually did. Art suggested switching to RCS. Well, maybe. I did, but that was because SCCS was not Y2K-safe on Solaris 2.4, and I wanted to be able to use my CM system after the change of millenium Current versions of Solaris (2.5.1 up) are OK. But the prospect of damaging my code was too serious to risk. I hate the way RCS works with locked files for checkouts; it modifies the master file, unlike SCCS which creates a p-file without changing the master file. But RCS has always been Y2K-safe, so I switched. Since I'm serious about version numbers, I have some complex code to get rid of the RCS $Revision: 1.3 $ style mess, leaving me with just 1.3, just like the SCCS %I% keyword would provide. If you want to take a look see, dig out any of my C programs from the IIUG archive (eg SQLCMD) and look in stderr.c. Steve Romankiw wrote: > I have a script that it conflicting with SCCS. In the example below, > the %Y% in the date clause is getting interpretted by SCCS. > > Is there a way to make SCCS ignore this clause? > > TIA > > Steve Romankiw > > Example: > ============== > #!/bin/ksh > #----- > # SccsId %W% > #----- > fmtdate=$(date '+%Y%m%d') # %Y% conflicts with SCCS > # > echo Formated Date: ${fmtdate} -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN #include <disclaimer.h>