delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/04/13:18:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20050304181802.27441.qmail@web53409.mail.yahoo.com>
Date: Fri, 4 Mar 2005 10:18:01 -0800 (PST)
From: Dave <d_inabox AT yahoo DOT com>
Subject: Re: chere doesn't cd to directory
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Note-from-DJ: This may be spam

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019