Path: utzoo!attcan!uunet!cs.utexas.edu!yale!cs.yale.edu!chen-dahe From: chen-dahe@CS.Yale.EDU (Dahe Chen) Newsgroups: comp.unix.questions Subject: shell or c-shell? Message-ID: <20009@cs.yale.edu> Date: 23 Mar 90 16:16:40 GMT Sender: news@cs.yale.edu Reply-To: chen-dahe@CS.Yale.EDU (Dahe Chen) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 31 I am having trouble with a shell script I wrote (forgive me if it is trivial, what can you blame for a naive user): #! /bin/sh # MANPATH=/twolf7/dchen/man if [ -f $MANPATH/"$1".1 ] then nroff -man $MANPATH/"$1".1 | more else /usr/ucb/man $1 fi It works if I explicitly invode shell, i.e., % sh [-x] man xxx but does not work when I do % man xxx which gives me No manual entry for . My login shell is csh. It looks like the latter calls c-shell instead of shell. If it is true, how can I solve the problem. Thanks in advance. Dahe Chen internet: dchen@twolf.ce.yale.edu chen-dahe@cs.yale.edu bitnet: dchen@yalevms