Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!world!kaspar!ires From: ires@kaspar.UUCP (Bruce R. Larson) Newsgroups: comp.unix.sysv386 Subject: Re: Interactive Unix/386 and Tcsh Summary: tcsh-5.20 compiled with POSIX Job Control with only a little trouble Keywords: tcsh, isc, interactive Message-ID: <16@kaspar.UUCP> Date: 17 Nov 90 07:24:12 GMT References: <61352@unix.cis.pitt.edu> Lines: 45 In article <61352@unix.cis.pitt.edu>, erast1@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@cs.umb.edu Uucp: ..!cs.umb.edu!ires.com!blarson ========================================