shell or c-shell?

Dahe Chen chen-dahe at CS.Yale.EDU
Sat Mar 24 02:16:40 AEST 1990


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 at twolf.ce.yale.edu
	    chen-dahe at cs.yale.edu
bitnet:	    dchen at yalevms



More information about the Comp.unix.questions mailing list