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 5/12/88 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), and stty(1). Printed 5/12/88 2
%%index%% na:216,80; sy:296,275; de:571,775; op:1346,995; ex:2341,235; fi:2576,198; rv:2774,177;3239,221; se:3460,218; %%index%%000000000142