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

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
Date: Fri, 4 Mar 2005 23:23:46 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave <d_inabox AT yahoo DOT com>
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: <Pine.GSO.4.61.0503042321540.12630@slinky.cs.nyu.edu>
References: <20050304181802 DOT 27441 DOT qmail AT web53409 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

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:
> >
> > <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.

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/

- Raw text -


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