Alexander Skwar wrote:

> So sprach Andrej Borsenkow am Sun, May 20, 2001 at 03:51:29PM +0400:
> 
>>>Why has LESSOPEN been moved to /etc/skel/.bash_alias ?  Before it was in
>>>/etc/profile which also allowed other shells, namely zsh,
>>>
>>Sorry? Zsh never reads /etc/profile if called as zsh. It reads
>>/etc/zprofile.
>>
> 
> from man zsh:
> 
>        The  usual  zsh  startup/shutdown  scripts are not executed.  Login

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


>        shells source /etc/profile followed by $HOME/.profile.  If  the  ENV
>        environment
> 
> 


Please, learn how to quote. The quoted paragraph is from "Compatibility" 
section and applies if zsh was called as sh e.g. by symlinking to it. 
The "usual" zsh startup scripts are zshenv, zprofile, zshrc and zlogin 
in this order (and corresponding private ones of course). So, if you 
mean, that on your system you linked /bin/sh to zsh - then you are right 
of course.


>>I think, that we just need something like /etc/profile.d/alias.sh, because
>>/etc/profile.d is sourced by both bash and zsh.
>>
> 
> Wrong.  Neither bash nor zsh nor tcsh source /etc/profile.d out of them
> selves.  


I know. But on Mandrake both are setup to source files from 
/etc/profile.d. I speak about Mandrake, not about some virtual zsh.

           I don't know (and care) about (t)csh, to be honest, but bash and
> zsh source /etc/profile.  In /etc/profile, you'll find something like:
> 
>       for profile in /etc/profile.d/*.sh; do
>               source $profile
>       done
>


FYI for zsh you have it in /etc/zshrc.

> And further, if you add something to /etc/profile, it will also be available
> in zsh, which proves that your statement is wrong.
> 


About zsh? Wow! :-)

Have you ever tested it?

bor@localhost% print $ZSH_VERSION
4.0.1-pre-4
bor@localhost% grep PROFILE_LOADED /etc/profile
PROFILE_LOADED=1
bor@localhost% print $PROFILE_LOADED?
  - nothing -

-andrej


Reply via email to