Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCCS is converting my code

Status
Not open for further replies.

pjb

Programmer
May 1, 2001
148
US
I have a shell script that contains " NOW=`date '+%m%d%H%M%S'`" and when I get a "get" from SCCS for read only copy. THe %H% is getting "evaluated" and the line becomes NOW=`date '+%m%d08/27/03M%S'`. I looks as if %H% means something to "somebody"
 
Try this as a workaround:
Code:
NOW=`date '+%m%d%'"H"'%M%S'`

Hope This Help
PH.
 
Try using:

sccs get -k ....



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
You need to escape the %H, so do

NOW=`date '+%m%d\%H%M%S'`

Greg.
 
The sccs get -k .... flag does NOT expand the ID keywords like: %H%

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top