[net.unix] csh and time

tim@callan.UUCP (05/24/84)

/**/

  Here is an interesting behaviour from csh:

	time echo foo

uses the csh builtin 'time', but

	time echo foo &

uses /bin/time.  Any ideas as to why this happens?  Is it
a bug or a feature?

This was tried on two 68k systems.  I haven't had a chance at
a VAX yet.
-- 
----------------------------------------------------------------------
Tim Smith	    {decvax,ucbvax,ihnp4}!cithep!tim
		    {decvax,ucbvax,cithep}!trwrb
					        >- !wlbr!callan!tim
			  ihnp4!{vortex,scgvaxd}

olson@fortune.UUCP (05/30/84)

#R:callan:-15800:fortune:26900058:000:164
fortune!olson    May 29 13:56:00 1984

On both the 4.1 vax csh and the 4.1 based 68k csh we have here, the
builtin 'time' is used for both the foreground and background jobs in
your example.
	Dave Olson

guy@rlgvax.UUCP (Guy Harris) (05/30/84)

I remember somebody from Callan reporting another "csh" bug that didn't appear
in our 4.2BSD "csh"; it seems there was an earlier version of the C shell
that had some problems that were fixed in the version that appeared in 4.1BSD.
(The other problem was that "&&" and "||", respectively, in the C shell
acted like "||" and "&&", respectively, in the Bourne shell.)

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy