Alvin Oga wrote:
hi ya
forgot-who started it
Is there a good system for setting variables, aliases, etc that need to be
set for user X, whether I log in at a login prompt or using su? I'm
confused by all the different .profile options (there are at least 3 for
bash, why is that?)
why ?? because ... long history ...
general rule ...
- if you're confused .. do NOT change files in anything other
than your own home directory "/home/you"
My solution to this nonsense is to have a file
/home/me/my_startup
It is not a "dot" file, so I can *see* it. I dislike "hiding"
those files. Then I build
/home/me/.funky_namedrc
which is specific to whatever shell I'm using, and put
lines in it to set a variable indicating which shell is
running, to load
/home/me/my_startup
Then all edits take place in /home/me/my_startup.
Obviously, this can only take into account differences
among very similar shells, like sh, ksh, bsh, and bash.
It can't work for both bash and csh.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]