[net.sources.bugs] "silly C code"

rivero@kovacs.UUCP (Michael Foster Rivero) (11/26/84)

------------


	Regarding the "silly C code" to repeat a shell command.

	  Yes, the shell is capable of executing the same function. But the
	shell is an interpreter, whereas the C code can be compiled. The
	difference is in the execution time, in which case the C code
	has the advantage.


					Michael (Cap'n Raster) Rivero

mark@digi-g.UUCP (Mark Mendel) (12/04/84)

This is all in reference to the 'rep' program posted.

The shell CANNOT duplicate its function!  Rep doesn't clear the screen.
It does a 'soft clear' and repaint with curses-stuff.   Only what changed
in the command output needs to be repainted.  That is very different
than the shell script with clear if you are running at less than 9600 baud.