GNU RCS 5.9.1: Environment

Previous: , Up: Common elements   [Contents][Index]


2.1.7 Environment

Various environment variables influence how RCS works.

Environment Variable: RCSINIT

Another way to set common options is with the ‘RCSINIT’ environment variable. This is a space-separated list of options. Use ‘\’ (backslash) to escape significant space. For example:

# 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’.

Environment Variable: RCS_MEM_LIMIT

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 256 kilobytes. Otherwise 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.

Environment Variable: TMPDIR
Environment Variable: TMP
Environment Variable: TEMP

Commands sometimes create temporary files, normally in a system-dependent directory, 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).

Environment Variable: LOGNAME
Environment Variable: USER

Absent -wlogin, or when login is omitted (see Misc common options), 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.


Previous: , Up: Common elements   [Contents][Index]


192 visits (1 today, 7 this week, 29 this month, 192 this year)
Uptime: 22:25:09 up 4 days, 4:08, 3 users, load average: 0.00, 0.00, 0.00
18.119.19.251 GET from server z.larrymurakami.com

Saturday, December 21, 2024 @ 10:25:09 PM
z.ServerAdmin@lam1.us