Explain @(#)cshrc 1.11 89/11/29 SMI | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Explain @(#)cshrc 1.11 89/11/29 SMI

Solaris


Tags
.cshrc

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-13-2013
fgrirx fgrirx is offline
Registered User
 
Join Date: Aug 2013
Last Activity: 13 August 2013, 6:10 PM EDT
Posts: 1
Thanks: 2
Thanked 0 Times in 0 Posts
Explain @(#)cshrc 1.11 89/11/29 SMI

What does ' @(#)cshrc 1.11 89/11/29 SMI ' mean?
Can someone please deconstruct and explain the parts?

Code:
# @(#)cshrc 1.11 89/11/29 SMI

It is at the top of a the .cshrc of a new Solaris account I am working on.
I am familiar with using the first line of a script for setting the program/shell to use. Example: #!/bin/csh or #!/bin/sh or #!/ben/perl.
I am also familiar with leaving the first line blank or adding a comment. For .cshrc (opposed to my_script.csh) I just start with a # comment line.

Searching the internets, I see lots of examples of .cshrc posted that begin with this line, but I have not found anybody who explains what it is doing or where it comes from. The best I tell, it is just a comment. But why does it appear at the beginning of so many .cshrc files?

Last edited by fgrirx; 08-13-2013 at 06:02 PM.. Reason: bad grammer and misspelling
Sponsored Links
    #2  
Old 08-13-2013
bartus11's Avatar
bartus11 bartus11 is offline Forum Staff  
Moderator
 
Join Date: Apr 2009
Last Activity: 30 October 2014, 6:49 PM EDT
Posts: 3,712
Thanks: 7
Thanked 1,143 Times in 1,114 Posts
This is a standard header found in many shell scripts/config files in Solaris.
1.11 is a version of the file I think. 89/11/29 is a date (1989-11-29). SMI is an acronym for Sun MIcrosystems.
The Following User Says Thank You to bartus11 For This Useful Post:
fgrirx (08-13-2013)
Sponsored Links
    #3  
Old 08-13-2013
Don Cragun's Avatar
Don Cragun Don Cragun is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 31 October 2014, 5:06 AM EDT
Location: San Jose, CA, USA
Posts: 4,935
Thanks: 186
Thanked 1,655 Times in 1,404 Posts
It looks like bartus11 has mostly answered your question. It is an sccs (Source Code Control System) ID comment. In this case it says that this script is version 1.11 and was last updated on November 29, 1989. The SMI is for Sun Microsystems, Inc.

Once upon a time, every file that was part of a Solaris system distribution that had a place where a comment could be included contained a line like this. Binary files also contained data like this. You can use the what utility to extract this information from any file that contained the @(#) sccs ID introducer.
The Following 3 Users Say Thank You to Don Cragun For This Useful Post:
bartus11 (08-13-2013), fgrirx (08-13-2013), Yoda (08-13-2013)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cshrc cubicle^dweller Shell Programming and Scripting 4 08-28-2002 04:44 PM



All times are GMT -4. The time now is 05:08 AM.