HP-UX Reference (11i v2 04/09) - 1 User Commands N-Z (vol 2)

s
sccs(1) sccs(1)
are always run as the real user.
Options
The options supplied to the SCCS commands are documented in the corresponding SCCS man pages. The
options supplied to the pseudo commands are documented in the above section. All other options preced-
ing command are documented as follows:
-d rootpath Gives the path name to be used as the root directory for the SCCS files. rootpath
defaults to the current directory. This flag takes precedence over the
PROJECTDIR
environment variable.
-p dirpath Specifies the path name for the SCCS files. The default is the SCCS directory. dir-
path is appended to rootpath and is inserted before the final component of the path
name.
-r Runs sccs as the real user rather than the effective user that
sccs is set-user-id
to.
The command
sccs -d /usr -p cmd get src/b
converts to
get /usr/src/cmd/s.b
This can be used to create aliases. For example, the command
alias syssccs="sccs -p /usr/src/cmd"
makes syssccs an alias that can be used in commands like syssccs get b.
EXTERNAL INFLUENCES
Environment Variables
If the
PROJECTDIR environment variable is set, its value is used to determine the -d rootpath option
value for rootpath .If
PROJECTDIR begins with a slash (/), the value is used directly; otherwise, the
value is assume to be a login name and the home directory corresponding to login name is examined for a
subdirectory named src or source. If found, this directory path is used. Otherwise, the value is used
as a relative path name.
LC_CTYPE determines the interpretation of text within file as single- and/or multibyte characters.
LC_MESSAGES determines the language in which messages are displayed.
If
LC_CTYPE or LC_MESSAGES is not specified in the environment or is set to the empty string, the
value of LANG is used as a default for each unspecified or empty variable. If
LANG is not specified or is
set to the empty string, a default of "C" (see lang(5)) is used instead of
LANG.
If any internationalization variable contains an invalid setting,
sccs behaves as if all internationaliza-
tion variables are set to "C". See environ(5).
International Code Set Support
Single- and multibyte character code sets are supported.
RETURN VALUE
A successful completion returns 0. On error,
sccs exists with a value from <sysexits.h> or the exit
value from the command that was invoked. The only exception is the check pseudo command which
returns a nonzero exit status if a file is being edited.
EXAMPLES
To create a new SCCS file:
sccs create file
To get a file for editing, edit it, create a new delta and get file for editing:
sccs edit file.c
ex file.c
sccs deledit file.c
To get a file from another directory (/usr/src/cmd/SCCS/s.cc.c):
Section 1826 Hewlett-Packard Company 2 HP-UX 11i Version 2: September 2004