[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: single-source startup file (/etc/csh.cshrc - like behavior)
From: |
Chet Ramey |
Subject: |
Re: single-source startup file (/etc/csh.cshrc - like behavior) |
Date: |
Wed, 23 Jun 2004 13:38:34 -0400 |
> I am looking for a way to get bash to duplicate the behavior of
> csh/tcsh with respect to /etc/csh.cshrc, that is, a way to get every
> bash invocation to execute the same system-wide startup file, without
> having to modify a per-user-owned file (e.g. ~/.bashrc) for each user,
> since (a) that's inelegant (or at least yucky :), and (b) users could
> just delete the modification and/or the file, and That Would Be Bad.
Login shells already read and execute commands from /etc/profile. There
is a compile-time option, settable in config-top.h, that will enable
support for commands to be read and executed from a specified file
(usually /etc/bashrc or /etc/bash.bashrc) when a non-login interactive
shell is started.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/