-.TH CSH 1 ""
-.UC 4
-.de sh
-.br
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
-.if n .ds ua ^
-.if t .ds ua \(ua
-.if n .ds aa '
-.if t .ds aa \(aa
-.if n .ds ga `
-.if t .ds ga \(ga
-.if t .tr *\(**
-.SH NAME
-csh \- a shell (command interpreter) with C-like syntax
-.SH SYNOPSIS
-.B csh
-[
-.B \-cef\^instvVxX
-] [
-arg ...
-]
-.SH DESCRIPTION
-.I Csh
-is a first implementation of a command language interpreter
-incorporating a history mechanism (see \fBHistory Substitutions\fP),
-job control facilities (see \fBJobs\fP), interactive file name
-and user name completion (see \fBFile Name Completion\fP),
-and a C-like syntax.
-So as to be able to use its job control facilities, users of
-.I csh
-must (and automatically) use the new tty driver fully described in
-.IR tty (4).
-This new tty driver allows generation of interrupt characters
-from the keyboard to tell jobs to stop. See
-.IR stty (1)
-for details on setting options in the new tty driver.
-.PP
+.\" @(#)csh.1 6.14 (Berkeley) 7/24/90
+.\"
+.Dd July 24, 1990
+.Dt CSH 1
+.Os BSD 4
+.Sh NAME
+.Nm csh
+.Nd a shell (command interpreter) with C-like syntax
+.Sh SYNOPSIS
+.Nm csh
+.Op Fl cef\*(uainstvVxX
+.Op arg ...
+.Sh DESCRIPTION
+The
+.Nm Csh
+is a command language interpreter
+incorporating a history mechanism (see
+.Nm History Substitutions ) ,
+job control facilities (see
+.Nm Jobs ) ,
+interactive file name
+and user name completion (see
+.Nm File Name Completion ) ,
+and a C-like syntax. It is used both as an interactive
+login shell and a shell script command processor.
+.Ss Argument list processing
+If the first argument (argument 0) to the shell is
+.Sq Fl
+then this
+is a login shell.
+The flag arguments are interpreted as follows:
+.Tw 5n
+.Tp Fl b
+This flag forces a ``break'' from option processing, causing any further
+shell arguments to be treated as non-option arguments.
+The remaining arguments will not be interpreted as shell options.
+This may be used to pass options to a shell script without confusion
+or possible subterfuge.
+The shell will not run a set-user ID script without this option.
+.Tp Fl c
+Commands are read from the (single) following argument which must
+be present.
+Any remaining arguments are placed in
+.Ar argv .
+.Tp Fl e
+The shell exits if any invoked command terminates abnormally
+or yields a non-zero exit status.
+.Tp Fl f
+The shell will start faster, because it will neither search for nor
+execute commands from the file
+.Pa \&.cshrc
+in the invoker's home directory.
+.Tp Fl i
+The shell is interactive and prompts for its top-level input,
+even if it appears to not be a terminal.
+Shells are interactive without this option if their inputs
+and outputs are terminals.
+.Tp Fl n
+Commands are parsed, but not executed.
+This aids in syntactic checking of shell scripts.
+.Tp Fl s
+Command input is taken from the standard input.
+.Tp Fl t
+A single line of input is read and executed.
+A `\e' may be used to escape the newline at the end of this
+line and continue onto another line.
+.Tp Fl v
+Causes the
+.Ar verbose
+variable to be set, with the effect
+that command input is echoed after history substitution.
+.Tp Fl x
+Causes the
+.Ar echo
+variable to be set, so that commands are echoed immediately before execution.
+.Tp Fl V
+Causes the
+.Ar verbose
+variable to be set even before
+.Pa \&.cshrc is executed.
+.Tp Fl X
+Is to
+.Fl x
+as
+.Fl V
+is to
+.Fl v .
+.Tp
+.Pp
+After processing of flag arguments, if arguments remain but none of the
+.Fl c ,
+.Fl i ,
+.Fl s ,
+or
+.Fl t
+options were given, the first argument is taken as the name of a file of
+commands to be executed.
+The shell opens this file, and saves its name for possible resubstitution
+by `$0'.
+Since many systems use either the standard version 6 or version 7 shells
+whose shell scripts are not compatible with this shell, the shell will
+execute such a `standard' shell if the first character of a script
+is not a `#', i.e. if the script does not start with a comment.
+Remaining arguments initialize the variable
+.Ar argv .
+.Pp