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/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,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/

Reply via email to