delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/19/15:42:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_SV,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Rockefeller, Harry" <Harry DOT Rockefeller AT flightsafety DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Wed, 19 May 2010 14:42:35 -0500
Subject: RE: bash - command - PATH question
Message-ID: <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F81@srv060ex01.ssd.fsi.com>
References: <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F0B AT srv060ex01 DOT ssd DOT fsi DOT com> <4BF3FC7A DOT 8030705 AT bopp DOT net> <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F33 AT srv060ex01 DOT ssd DOT fsi DOT com> <ht102a$5fg$1 AT dough DOT gmane DOT org> <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F41 AT srv060ex01 DOT ssd DOT fsi DOT com> <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F57 AT srv060ex01 DOT ssd DOT fsi DOT com> <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F6F AT srv060ex01 DOT ssd DOT fsi DOT com> <4BF43867 DOT 3070908 AT redhat DOT com>
In-Reply-To: <4BF43867.3070908@redhat.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 05/19/2010 12:45 PM, Rockefeller, Harry wrote:
> After more testing, where
>=20
> "export PATH=3D$PATH:~/bin" only exists in .bash_login.
>=20
> If I run 'foo' from my login directory it works.
> If I then cd to a different place I get the error
>=20
> bash: ./bin/foo: No such file or directory

Eric Blake> What does 'type foo' say?  Is it hashed?  What is $HOME?  Could=
 you accidentally have set home to a relative path, in which case ~ is rela=
tive instead of absolute?  What does 'echo $PATH' say; are there any relati=
ve paths in that listing?

$ type mysvn
mysvn is hashed (./mysvn)

Cat's out of the bag.  foo really is a bash script to run my common svn com=
mands.

$ echo $HOME
/cygdrive/c/DOCUME~1/harryr

$ cd ~ ; pwd
/cygdrive/c/DOCUME~1/harryr

$ echo $PATH
[gives a very long path.  Yes, ./ and ./bin are present but are the only
relative paths in the listing.]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019