Unix/Linux 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



Thread Tools Search this Thread Display Modes
Old Unix and Linux 08-13-2013   -   Original Discussion by fgrirx
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?

# @(#)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 07:02 PM.. Reason: bad grammer and misspelling
Sponsored Links
Old Unix and Linux 08-13-2013   -   Original Discussion by fgrirx
bartus11's Unix or Linux Image
bartus11 bartus11 is offline
Registered User
Join Date: Apr 2009
Last Activity: 3 August 2016, 11:03 AM EDT
Posts: 3,733
Thanks: 7
Thanked 1,153 Times in 1,123 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
Old Unix and Linux 08-13-2013   -   Original Discussion by fgrirx
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 19 November 2017, 7:13 AM EST
Location: San Jose, CA, USA
Posts: 10,658
Thanks: 571
Thanked 3,732 Times in 3,185 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 05:44 PM

All times are GMT -4. The time now is 10:20 AM.