Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!udel!princeton!samadams!tr From: tr@samadams.princeton.edu (Tom Reingold) Newsgroups: comp.unix.questions Subject: Re: shell or c-shell? Message-ID: <25135@princeton.Princeton.EDU> Date: 23 Mar 90 20:28:47 GMT References: <20009@cs.yale.edu> Sender: news@princeton.Princeton.EDU Organization: Princeton University, NJ Lines: 35 In article <20009@cs.yale.edu> chen-dahe@CS.Yale.EDU (Dahe Chen) writes: $ 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. Is "." in the beginning of your path or at the end? Did you rehash after creating your man command? Did you "chmod +x man"? Try "./man xxx" and see what happens. -- Tom Reingold tr@samadams.princeton.edu