chere doesn't cd to directory
Wayne Johnson
wdtj@yahoo.com
Thu Mar 3 19:54:00 GMT 2005
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/
More information about the Cygwin
mailing list