RED(1) COMMAND REFERENCE RED(1)
NAME
red - restricted text editor
SYNOPSIS
red [ - ] [ -p[prompt ] [ -q ] [ -x ] [ filename ]
DESCRIPTION
Red is a restricted version of ed(1). It is used in
conjunction with the restricted mode of sh(1sh).
The differences between red and ed are that red will only
allow the user to edit files in the current directory, and
will not allow execution of shell commands using the !
command. Attempts to bypass these restrictions results in an
error message saying that the shell is restricted.
See the documentation for ed for a description of the
commands.
OPTIONS
- Suppresses the printing of character counts by e, r, and
w commands, of diagnostics from e and q commands, and of
the ! prompt after a ! shell command.
-p[prompt]
Causes the specified prompt to be printed when ed has
finished with a command and is waiting for the next one.
If no prompt is specified, * is used. Without the -p
option, no prompting is done.
-q Allows the signal SIGQUIT (normally generated by the
character <\>) to terminate the edit session, and turns
off the - option. Normally, SIGQUIT is ignored.
-x An X command is simulated first to handle an encrypted
file.
EXAMPLES
The following input causes the @ prompt to be printed when
ed is done with a command:
red -p@
FILES
/tmp/e# Temporary; # is the process number.
ed.hup Work is saved here if the terminal
is hung up.
RETURN VALUE
[NO_ERRS] Command completed without error.
Printed 10/17/86 1
RED(1) COMMAND REFERENCE RED(1)
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
SEE ALSO
ed(1), grep(1), sed(1), sh(1sh), stty(1).
Printed 10/17/86 2
%%index%%
na:72,64;
sy:136,202;
de:338,675;
op:1013,899;
ex:1912,191;
fi:2103,231;
rv:2334,133;2611,221;
se:2832,186;
%%index%%000000000141