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" To: "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> <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> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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