From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,1e4dcb4d6024ba24 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,1e4dcb4d6024ba24 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: why my path can't work properly? Date: 1998/04/02 Message-ID: <3523ADAE.526EF5BB@EUnet.yu>#1/1 X-Deja-AN: 340215933 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: Me organized? Not here! Mime-Version: 1.0 Newsgroups: comp.unix.questions,comp.unix.osf.osf1 Bo Pan wrote: > > I am using OSF1 V4.0 alpha. my path is set as (use echo $PATH): > /usr2/users/bpan/bin:/usr/bin:/usr/dt/bin:/usr/bin/X11:. > there is a excutable file hello in bpan/bin, I do following: > > tom1 [bpan]% hello > hello: Command not found. > tom1 [bpan]% which hello > /usr2/users/bpan/bin/hello > tom1 [bpan]% > tom1 [bpan]% /usr2/users/bpan/bin/hello > > run properly. > what's the problem? > if I telnet to tom1 from other machine, no such problem. What does that line "hello: Command ..." suggest? That hello cannot find something? (Otherwise, your shell would be reporting an error, like "zsh: hello not found") Maybe that's the problem? > by the way, what is the difference between $path and $PATH? > echo $path > echo $PATH path is a C-Shell variable and PATH is Bourne/Korn/Bourne_Again/Z-Shell variable. You're probably running ZSh, ignore path, use PATH instead.