Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 4 Mar 2005 23:23:46 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Dave cc: cygwin AT cygwin DOT com Subject: Re: chere doesn't cd to directory In-Reply-To: <20050304181802.27441.qmail@web53409.mail.yahoo.com> Message-ID: References: <20050304181802 DOT 27441 DOT qmail AT web53409 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 4 Mar 2005, Dave wrote: > CHere didn't work because you either have an old or custom /etc/profile. > > > In /etc/profile I need to replace the line: > > > > > > 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-/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. Dave, I don't recall if this was part of the discussion, but any particular reason you're not doing this in a /etc/profile.d script instead? That way, it would work even with a custom /etc/profile. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/