Re: [Cooker] LESSOPEN in /etc/skel?? less won't open .gz files anymore!

2001-05-21 Thread Chmouel Boudjnah

Alexander Skwar [EMAIL PROTECTED] writes:

 But still, aliases should be moved to /etc/profile.d/alias.sh or somesuch.

yep i plan to go back to this..




RE: [Cooker] LESSOPEN in /etc/skel?? less won't open .gz files anymore!

2001-05-20 Thread Andrej Borsenkow


 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.

I think, that we just need something like /etc/profile.d/alias.sh, because
/etc/profile.d is sourced by both bash and zsh.

-andrej





Re: [Cooker] LESSOPEN in /etc/skel?? less won't open .gz files anymore!

2001-05-20 Thread Alexander Skwar

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

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

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

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 6 days 3 hours 53 minutes




Re: [Cooker] LESSOPEN in /etc/skel?? less won't open .gz files anymore!

2001-05-20 Thread Andrej Borsenkow

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





Re: [Cooker] LESSOPEN in /etc/skel?? less won't open .gz files anymore!

2001-05-20 Thread Alexander Skwar

So sprach Andrej Borsenkow am Sun, May 20, 2001 at 08:30:41PM +0400:
 About zsh? Wow! :-)
 
 Have you ever tested it?

Uhm, yes, but somehow my tests were bad (ie. gave false positives).

I'm sorry for accusing you, as you are and were completely right.  Now I
tested some more and found out exactly what you told.

Sorry about this.

But still, aliases should be moved to /etc/profile.d/alias.sh or somesuch.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 6 days 6 hours 9 minutes