From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Karr Newsgroups: gmane.emacs.help Subject: Re: shell doesn't appear to execute $HOME/.emacs_bash Date: Tue, 30 Jun 2009 15:42:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <8949e927-05a6-4c3f-8371-6cea3ccbe84d@n4g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246420436 14808 80.91.229.12 (1 Jul 2009 03:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2009 03:53:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 01 05:53:49 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLqtD-0001of-UH for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2009 05:53:44 +0200 Original-Received: from localhost ([127.0.0.1]:44128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLqtD-00078W-D4 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 23:53:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z14g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 135.214.42.162 Original-X-Trace: posting.google.com 1246401742 8259 127.0.0.1 (30 Jun 2009 22:42:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 30 Jun 2009 22:42:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000yqa.googlegroups.com; posting-host=135.214.42.162; posting-account=78dYpQkAAABkXq5R--mk7bpN1x43kmXK User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170483 X-Mailman-Approved-At: Tue, 30 Jun 2009 23:49:56 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65683 Archived-At: On Jun 1, 4:33=A0pm, David Karr wrote: > I'm running GNU Emacs in Cygwin, both of which I just installed on > this > box. > > In shell-mode in Emacs, I want the same aliases that are defined in > my $HOME/.bashrc file. =A0As far as I can tell, the way to do this is to > create a file $HOME/.emacs_bashwith the following contents: > > =A0 . $HOME/.bashrc > > Unfortunately, this seems to have no effect. =A0Once the shell mode > finishes initializing, the aliases I needed are not set. =A0I also tried > adding an "echo" to the top of that file, to see if I could when it is > executed, but I never saw that output anywhere. > > I've also tested this with XEmacs on Cygwin, and it behaves exactly > the same way. I'm getting back to this, because I'm setting up my environment on a new box. I discovered one more interesting fact, but I don't know what to do with it yet. When I start up Emacs and execute "shell", it apparently just executes "bash" without running "$HOME/.bashrc" or "$HOME/.emacs_bash". I can tell because I have print statements in both of those. If I then kill the "*shell*" buffer and then execute "shell" again, the shell buffer shows the print statement from "$HOME/.bashrc" (I really only need to execute $HOME/.bashrc, not $HOME/.emacs_bash, for what I need). I don't understand what the difference might be between the first invocation of "shell", with the second one, after killing the *shell* buffer.