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.

Mmmm. Leftovers. I'll clean that out in the next release.

CHere didn't work because you either have an old or custom /etc/profile.

> In /etc/profile I need to replace the line:
>
> <snip>

Yes, that does the job, but not completely.

Look for the correct snippet in a recent /etc/defaults/etc/profile (part of the
base-files package). If you don't have other modifications in /etc/profile copy
the default file, which was updated recently. This also means you will pick up
further base-files modifications when they are released.

>Whether this will fix it for all shells, I'm not sure.

The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile for zsh;
/etc/csh.login for tcsh.

An appropriate modification for zprofile can be found in
/usr/share/doc/zsh-<ver>/StartupFiles/etc/zprofile (installed with zsh).
zprofile is updated in a similar way to profile, so use the default if you want
to pick up updates.

Appropriate modifications for csh.login should appear in the next release. They
are similar to that in profile.

>Thanks for a great utility.

Not a problem.


Dave.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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]