This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chere doesn't cd to directory


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]