You are on page 1of 1

Chapter 2: Usage 11

# Set the value; make it available to subsequent commands.


RCSINIT="-q -x/,v -zLT"
export RCSINIT

# Use it (implicitly).
rlog -L foo
This example, in Bourne shell syntax, arranges for RCS commands to operate as if
each command-line had prepended ‘-q -x/,v -zLT’ to the rest of the command-line.
The effective command-line that rlog sees is thus ‘-q -x/,v -zLT -L foo’.
RCS_MEM_LIMIT [Environment Variable]
Normally, for speed, commands either memory map or copy into memory the RCS file
if its size is less than the memory limit, currently defaulting to “unlimited”. Otherwise
(or if the initially-tried speedy ways fail), the commands fall back to using standard
i/o routines.
You can adjust the memory limit by setting the ‘RCS_MEM_LIMIT’ environment variable
to a numeric value (measured in kilobytes). An empty value is silently ignored.
As a side effect, specifying the memory limit inhibits fall-back to slower routines.
(This env var is mostly intended for testing RCS; normally, you can leave it unset.
Probably it will be removed in a future release.)
TMPDIR [Environment Variable]
TMP [Environment Variable]
TEMP [Environment Variable]
Commands sometimes create temporary files, normally in a system-dependent direc-
tory, such as /tmp. You can override this directory by specifying another one as
the value of one of the environment variables TMPDIR, TMP, or TEMP (checked in that
order).
LOGNAME [Environment Variable]
USER [Environment Variable]
Absent -wlogin, or when login is omitted (see Section 2.1.6 [Misc common options],
page 9), commands check environment variables LOGNAME and USER (in that order).
If neither of these are set, RCS queries the host for, and uses, your login.

2.2 Invoking ci
rcs ci [options] file ...
(or “ci” instead of “rcs ci”)
The ci command adds a revision to the RCS file reflecting the current state of the working
file. This operation is also known as “checkin”.
-f[rev] Force new entry, even if no content changed.
-I[rev]
-q[rev] See Section 2.1.6 [Misc common options], page 9.
-i[rev] Initial checkin; error if the RCS file already exists.
-j[rev] Just checkin, don’t initialize; error if the RCS file does not exist.

You might also like