version(1)

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 the current working directory is not the installation directory of the compiler(s) and other files to be checked, filename must be the full path to their installation directory.

Further, you can invoke version also to display the version ID of the various executables that operate during a compilation session by using the -V flag in the command line for the compilers: cc, f77, f90, CC, and pc.

EXAMPLES
If the current working directory contains the file(s) whose version are to be displayed, type the command and filename(s), for example:

    version f77
    version iropt
If the current working directory does not contain the file(s), the argument must comprise the full path and directory or filename to the file(s) to be checked for version numbers. For example, in the following commands path must give the full pathname to the file(s).

    version /<path>/f77
    version /<path>/SC4.2/iropt

NOTES
The version command identifies the version numbers of the installed SunSoft Developer Products compilers and their associated libraries and other files.

The version command seeks and displays any string of ASCII characters following the @(#)RELEASE VERSION string. This string must be identified correctly in the source file(s), depending on operating system's version. For Solaris 2.x this string should be in a #pragma ident, for example:

    #pragma ident @(#)RELEASE VERSION 4.2

The version information string following this version-key string can be any sequence of printable characters terminated by a NEWLINE or NULL. The version command displays whatever information is thus included in any file accessed by this command.

The version command utility given no arguments shows information on what products are installed and what configuration they belong to, for example:

    % version
    SunSoft Visual WorkShop C++ 3.0
        SunSoft WorkShop Compiler C 4.2
        SunSoft WorkShop Compiler C++ 4.2
        SunSoft WorkShop Tools.h++ 7.0
        SunSoft WorkShop Tools.h++ 6.0.4
        SunSoft WorkShop Visual 2.0
        SunSoft WorkShop IPE 4.0
        SunSoft WorkShop CodeManager 2.0
        SunSoft WorkShop Distributed Make 2.0
        SunSoft WorkShop FileMerge 3.0
        SunSoft WorkShop FreezePoint 2.0
        SunSoft WorkShop Maketool 2.0
        SunSoft WorkShop VersionTool 2.0
        SunSoft WorkShop Dbx 4.0
        SunSoft WorkShop Performance Analyzer 4.0
        SunSoft WorkShop LoopTool 2.1
        SunSoft WorkShop LockLint 2.1
        SunSoft WorkShop Thread Analyzer 1.2
        SunSoft WorkShop XEmacs 20.00