csh and $SHELL variable conflicts.

Joel Clark joel at intelisc.UUCP
Thu Feb 4 11:10:54 AEST 1988


I have ATT's Sys V/386 R3.0 V1.0 on an intel 80386 PC/AT bus type
machine.

We aquired a copy of csh through intel's Berkeley source license.
OTHERSH was set to /bin/sh before compiling it.
Shell scripts written with '#' as the first character are run by
/bin/sh EXCEPT when executed from a makefile.   make reads the
script and feeds it to the shell defined by $SHELL.

Is there a convention for shell and environment variables to define
the interactive shell and the batch shell differently?

Currently I `set shell=/bin/csh` and `setenv SHELL /bin/sh`

However in an attempt to emulate BSD job control I was investigating
`shl`  the SYS V shell layer facility and found it creates virtual
terminals running the shell defined in $SHELL.

This does note sweetly and cleanly allow me to provide our customers
with a csh environment with "job control" in a System V system.  Suggestions?

Joel Clark			            
Intel Scientific Computers		      
503-628-7732				     
joel at isc.intel.com			   
{tektronix}!ogcvax!intelisc!joel	



More information about the Comp.unix.questions mailing list