VERSION(1) — USER COMMANDS
NAME
version − display version identification of object file or binary
SYNOPSIS
version filename ...
DESCRIPTION
The version command displays the version of the named file(s).
USAGE
Type: version filename
If you are not in the installation directory, type the full path.
The version command works for these compilers and later releases.
cc 1.0
f77 1.3
CC 2.1
pc 2.0
It will not work for releases before these.
You can verify the version-id of the various executables during a compilation session by using the -V option along with any one of cc, f77, CC, and pc compilers. The -V option will not work on releases before those indicated above.
EXAMPLES
If you are in the directory that contains the file whose version you want, type as follows:
version f77
version iropt
If you are not in that directory, then you must give the full pathname of the file whose version you want.
version /install_directory/f77
version /install_directory/SC2.0.1/iropt
NOTES
The version command is intended to help you identify versions of the compilers and their associated libraries and other files.
The version command looks for the ASCII string of characters following the string
"@(#)RELEASE VERSION SC"
The string could be any sequence of printable characters terminated by a NEWLINE or NULL. Thus if you put this string into your files, the version command can be used to display the version of your files, too.
Sun Release 4.1 — Last change: 20 February 1992