Hello,
Like you probably know, if you want to set permanantly an environment variable, you can write it in /etc/profile.d/ in Slackware.
I already did 1 script in /etc/profile.d/ before (when I was on Slackware 10.2), but now, I don't know why, but I can't.
I would like to set the environment variable "LESSHISTFILE" to "-".
So, I did in /etc/profile.d/ a file named "lesshst.sh", and I wrote in it :
Quote:
# Disable the "LESSHISTFILE" environment variable
# i.e. NO $HOME/.lesshst
LESSHISTFILE="-"
export LESSHISTFILE
|
then, I did CTRL+ALT+BACKSPACE (shutdown Xserver), I logged out (logout).
After, I relogged in "root", I opened an "rxvt", did the "set" command to see if LESSHISTFILE=- was there, but there was NOTHING about lesshistfile.
So, to do a test, I did a script with "export TEST101=on-hello", just to see if this was working, and it wasn't working!!! (I did the same things than before, with the "lesshst.sh" script)
The syntax of my scripts is OK, so what can it be?
The other scripts in /etc/profile.d works, why not mines?
Thanx for help!
Blue
P.S.: When I wrote the commands in /etc/profile, it was working...