ADDITIONAL OPTIONS: -r, -p, -u, -P
Create a working copy of a version of the specified files and directories in project rooted in the current directory (creating any subdirectories that don't exist). You may use the option -r to select a version. The default major and minor version specifiers are both
@
.You will be warned when a check-out would change the contents of an existing working file, and interactively given the choice of replacing the file with the version being checked out, or leaving the existing file alone. Existing working files that do not differ from corresponding project files are not modified (their changed and modified dates do not change). The -f option will cause checkout to overwrite all files that differ without asking.
When prcs overwrites a working file that is a symbolic link, then (unless the
:symlink
option is specified for that file), it will overwrite the file that the link references, without changing the link itself. With the -u option, prcs will instead remove the link and create a new file.If a working project-version descriptor for project exists, then the project-version descriptor is treated as an ordinary file for purposes of check-out. A check-out with a non-defaulted file-or-dir list that does not contain the descriptor therefore leaves the descriptor unchanged. Further, if the -P option is supplied, the project descriptor will not be created at all.
Files that are checked out are restored to the protections recorded for them at check-in time, usually modified (on UNIX systems) by the user's file mode creation mask (see the UNIX manual entry for umask(1)). With the -p option, this mask is ignored, and the command restores the files' protections to exactly their state at check-in.
Returns a status code of 0 if all goes well, and non-zero if there are errors.