csh

utzoo!decvax!ucbvax!unix-wizards utzoo!decvax!ucbvax!unix-wizards
Thu Nov 12 03:49:04 AEST 1981


>From dsp.dove at MIT-SPEECH@MIT-AI Thu Nov 12 00:54:19 1981
I have had some problems learning to use it.
1) the line:
"if(a == b)then"
waits for me to type "endif" before continuing at top level.
the line:
"if(a == a)then"
does not.  Why?

2) I have a program grp that is a shell file:
PS1="($1)"$PS1
export PS1
newgrp $1

and my newgrp will not exec a shell if it fails it just exits
(so it will log you out if invoked directly on an illegal group).
This scheme allows me to see my current group.  Since csh seems not
to do anything useful with the sh environment variables (why not
initialize prompt to PS1 if it exists???) I can't find any way to do this.

3)  I have had many problems with complicated and or expressions not working.

This is all on the 2.8bsd csh.

Are these not present on the 4.1bsd csh or are they fixable?
-------



More information about the Comp.unix.wizards mailing list