bash - command - PATH question
Eric Blake
eblake@redhat.com
Wed May 19 19:51:00 GMT 2010
[please don't top-post]
On 05/19/2010 12:45 PM, Rockefeller, Harry wrote:
> After more testing, where
>
> "export PATH=$PATH:~/bin" only exists in .bash_login.
>
> If I run 'foo' from my login directory it works.
> If I then cd to a different place I get the error
>
> bash: ./bin/foo: No such file or directory
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
relative instead of absolute? What does 'echo $PATH' say; are there any
relative paths in that listing?
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100519/3ea4afb2/attachment.sig>
More information about the Cygwin
mailing list