RE: SCCS Question
Posted in 1999
The problem is when the file is checked in, and then checked backed out the file will read as follows: #!/bin/ksh #----- # SccsId %W% #----- fmtdate=$(date '+m%d') # %Y% conflicts with SCCS # echo Formated Date: ${fmtdate} Note the missing %Y% I suggest that you construct the format string, eg: #! /bin/ksh datestr='+%Y\\ %m\\ %d' # Avoid SCCS keyword replacements here!! fmtdate=$(date ${date_str}) echo Formated Date: ${fmtdate} --Howard Hong -----Original Message----- From: Art S. Kagel [mailto:kagel@bloomberg.net] Sent: Thursday, December 02, 1999 1:21 PM To: informix-list@iiug.org Subject: Re: SCCS Question 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? Use RCS instead? Seriously, use the -k option to get to extract without replacing keywords. Unfortunately this will ignore your %W% keyword as well and not generate the what string which kind of defeats the purpose. Hmm switching to RCS begins to sound good... > > Example: > ============== > #!/bin/ksh > #----- > # SccsId %W% > #----- > fmtdate=$(date '+%Y%m%d') # %Y% conflicts with SCCS > # > echo Formated Date: ${fmtdate} Art S. Kagel