This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: chere doesn't cd to directory
- From: Wayne Johnson <wdtj at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 3 Mar 2005 19:45:46 +0000 (UTC)
- Subject: Re: chere doesn't cd to directory
- References: <loom.20050303T200830-882@post.gmane.org>
Wayne Johnson <wdtj <at> yahoo.com> writes:
>
> One problem though. Where I do the chere "Bash here" menu entry, it starts
the
> bash in the home directory. I dug through the xhere script and found the
> "export CHERE_DIR=`cygpath -u $2`" commented out. If I comment it back in, I
> get an error because the registry entry didn't pass in the directory name as
$2.
I just figured out what is wrong. In /etc/profile I need to replace
the line:
cd "$HOME"
with
[ -z "$CHERE_INVOKING" ] && cd "$HOME"
Whether this will fix it for all shells, I'm not sure.
Thanks for a great utility.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/