[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU emacs locks files modified with CVS

From: Kevin Rodgers
Subject: Re: GNU emacs locks files modified with CVS
Date: Thu, 18 Dec 2003 10:19:55 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Maurizio Loreti wrote:

address@hidden writes:

Because it would take a lot of thinking to hash out which is the correct file to put this in, whether the DISPLAY is a resource or not, whether this variable should be set for all interactive shells or just for logins, and because I don't wish to argue any of this, I'll just say that I disagree and believe that .bashrc *is* the proper place for setting DISPLAY. As said at the outset, everyone can set up their systems however they wish.

You are free to do a lot of things - to shoot yourself in a foot, if
you like.  I dare to dissent.  From 'man bash':

| When bash is invoked as an interactive login shell ...  it first reads
| and executes commands from the file /etc/profile, if that file exists.
| After reading that file, it looks for ~/.bash_profile, ~/.bash_login,
| and ~/.profile, in that order, and reads and executes commands from
| the first one that exists and is readable.
| ...
| When an interactive shell that is not a login shell is started, bash
| reads and executes commands from ~/.bashrc, if that file exists.

Since all non-login shells (used e.g. to run commands in a subshell)
inherit the environment from the common ancestor, the login shell, I
think it is just a loss of time to recompute every time an environment
variable that *cannot* have been changed.  YMMV, of course.

Right.  So ~/.bash_profile, ~/.bash_login, or ~/.profile is the right place
to set DISPLAY.

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]