EX(I)				16 Jan 75			EX(I)

NAME
	ex - compile, load and execute command

SYNOPSIS
	ex arg1 arg2 ...
  or	ex

DESCRIPTION
	ex takes a list of arguments (flags or filenames)
	and sends them to the c compiler (cc) after appending, if necessary,
	the correct extension (.c or .o) to the filenames.  The resulting
	object code is loaded, and the a.out file (if any) is executed.
	Any previous a.out file is removed before compilation.

	The command string is remembered, so that subsequent invocations of
	ex with no arguments will use the arguments from the most recent
	non-empty call.

	ex passes all arguments preceded by a '-' to cc without further
	procssing; that is, cc flags are handled correctly.


NOTE
	sh arg		will take the argument list from user file arg.
			The first argument in the file must be ex.
			(This is a standard operation of the shell.)

FILES
	/tmp/compil.<uid>  where <uid> is the user id returned by getuid().
			Used to save the current argument string.

SEE ALSO
	cc(I)		c compiler
	load(I) 	like ex but except it doesn't execute a.out

DIAGNOSTICS
	mainly self-explanatory

BUGS
	The same command file /tmp/compil.<uid> is used for the ex and load
		commands. This is necessary for the convenience of the
		Rand Editor (re).
	Arguments limited to 20 characters.  This will be fixed eventually.
