Re: Ilugd-dev Digest, Vol 14, Issue 1

Abhijit Menon-Sen <[email protected]> Sat, 16 Jul 2005 17:14:32 +0530
Newsgroups gmane.user-groups.linux.delhi.devel
Message-ID <[email protected]>
At 2005-07-16 16:34:38 +0530, bsingh-dv/[email protected] wrote:
>
> I did this for the current shell used by the user [e.g. bash and I
> make entry in .bash_profile], but later on user changed his shell
> to some other shell? [may be ksh, sh or csh whatever]. 
>
> Can you suggest some generic solution under the above scenario?

Obviously not. The user can always subvert whatever scheme you concoct
(for example, by editing the rc file and removing the export line). As
I said, about the best you can do is put something in .profile (which
should work with Bourneish shells) and, say, .cshrc, and hope for the
best.

There *is* no fool-proof solution, because what you want to do is silly.

If you want something to persist, store it in a file.

-- ams