Re: Bash login script vs dot.bashrc

2003-02-05 Thread Ralf S. Engelschall
On Tue, Feb 04, 2003, Bill Campbell wrote:

> I don't know whether this subject has been discussed before, but I would
> like to suggest moving the code from the openpkg .bashrc file into the
> .bash_login file since it's not uncommon for loops to occur processing the
> .bashrc file.
>
> Having the ``eval'' in the bashrc file can easily result in loops, and may
> well change and externally set PATH breaking some programs.  It's been many
> years since I read discussion of what belonged in csh .login files as
> opposed to those in the .cshrc, but I seem to remember that things like the
> ``eval'' were better in the file processed once per session.

Yes, good suggestion. I cannot remember why all the stuff was in
dot.bashrc instead of dot.bash_login. I've now moved it starting with
openpkg-20030205-20030205.

> Even if there are good reasons not to do this, I would like to see these
> files specified ``%config(noreplace)'' to prevent automatic changes when
> updating openpkg.

Another good suggestion I've taken over. Same for
%{l_prefix}/etc/rc.conf from now on.

Thanks for your feedback.
   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]



Bash login script vs dot.bashrc

2003-02-04 Thread Bill Campbell
I don't know whether this subject has been discussed before, but I would
like to suggest moving the code from the openpkg .bashrc file into the
.bash_login file since it's not uncommon for loops to occur processing the
.bashrc file.

Having the ``eval'' in the bashrc file can easily result in loops, and may
well change and externally set PATH breaking some programs.  It's been many
years since I read discussion of what belonged in csh .login files as
opposed to those in the .cshrc, but I seem to remember that things like the
``eval'' were better in the file processed once per session.

Even if there are good reasons not to do this, I would like to see these
files specified ``%config(noreplace)'' to prevent automatic changes when
updating openpkg.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:   camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

The ultimate result of shielding men from the effects of folly is to fill
the world with fools. -- Herbert Spencer (1891)
__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]