Interactive Unix/386 and Tcsh

Bruce R. Larson ires at kaspar.UUCP
Sat Nov 17 18:24:12 AEST 1990


In article <61352 at unix.cis.pitt.edu>, erast1 at unix.cis.pitt.edu (Evan R Aussenberg) writes:
> Has anyone been able to compile tcsh (current version)
> under Interactive Unix v3.2 release 2.2?  Most of
> the modules do compile, but somewhere towards the end the
> compilation fails.
> 
I just compiled tcsh-5.20 with gcc (not traditional) and got it to work
with POSIX Job Control.

In the Makefile, add -D_POSIX_SOURCE to CFLAGS, and make sure that
LIBES includes -lcposix.
In config.h, make sure to define POSIX, POSIXJOBS and BSDJOBS.

The only real trouble that I had was in ed.init.c.  The shell would
come up with `xcase' set, and what's worse is that my parent shell
was inheriting the `xcase' condition after tcsh exited.

I changed IEXTEN to ~IEXTEN in a couple of spots and it's been working
OK ever since.

In ed.init.c around line 199 I changed
	nio.c_lflag |= (ISIG | ICANON | ECHO | ECHOE | ECHOK |
				ECHOCTL | IEXTEN);
to
	nio.c_lflag |= (ISIG | ICANON | ECHO | ECHOE | ECHOK |
				ECHOCTL | ~IEXTEN);

and around line 465 I changed
		nio.c_lflag |= (ISIG | ICANON | IEXTEN | ECHO | ECHOE |
				ECHOK | ECHOCTL);
to
	        nio.c_lflag |= (ISIG | ICANON | ~IEXTEN | ECHO | ECHOE |
				ECHOK | ECHOCTL);

Normally I would have sent you email instead of posting, but I thought
there would be some general interest in knowing that there is now
a shell available with emacs-style command line editing that takes
advantage of POSIX Job Control.


Bruce R. Larson
Integral Resources, Milton MA
Internet: ires.com!blarson at cs.umb.edu
Uucp:     ..!cs.umb.edu!ires.com!blarson
========================================



More information about the Comp.unix.sysv386 mailing list