From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: "source" shell commands Date: Sun, 25 Mar 2007 20:44:39 -0400 Message-ID: <46071777.9000502@gatech.edu> References: <87bqii936r.fsf@baldur.tsdh.de> <85wt16btg5.fsf@lola.goethe.zz> <46059643.8090705@gatech.edu> <4605BD72.6040904@gatech.edu> <2D4FA764-9DEE-4F5C-8501-AA4E3F4787A7@Web.DE> <46065528.5000702@gatech.edu> <6A88E31C-15DF-4589-9D89-F5C572080230@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174869971 19003 80.91.229.12 (26 Mar 2007 00:46:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 00:46:11 +0000 (UTC) To: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 26 02:46:05 2007 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 1HVdLX-00019o-2Z for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Mar 2007 02:46:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVdNi-000562-9d for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Mar 2007 19:48:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVdMR-0003kL-Ea for help-gnu-emacs@gnu.org; Sun, 25 Mar 2007 20:46:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVdMP-0003h5-EG for help-gnu-emacs@gnu.org; Sun, 25 Mar 2007 20:46:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVdMO-0003gm-VO for help-gnu-emacs@gnu.org; Sun, 25 Mar 2007 19:46:56 -0500 Original-Received: from deliverator8.gatech.edu ([130.207.165.183]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HVdKC-0001a8-Vg for help-gnu-emacs@gnu.org; Sun, 25 Mar 2007 20:44:41 -0400 Original-Received: from deliverator8.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 33510100 for ; Sun, 25 Mar 2007 20:44:40 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx2.gatech.edu (mailprx2.prism.gatech.edu [130.207.171.21]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator8.gatech.edu (Postfix) with ESMTP id 1D6FEFE for ; Sun, 25 Mar 2007 20:44:40 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [128.61.73.81] (r73h81.res.gatech.edu [128.61.73.81]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx2.gatech.edu, sender=n/a) by mailprx2.gatech.edu (Postfix) with ESMTP id E47722365 for ; Sun, 25 Mar 2007 20:44:39 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.10 (X11/20070306) In-Reply-To: <6A88E31C-15DF-4589-9D89-F5C572080230@Web.DE> X-Enigmail-Version: 0.94.3.0 X-detected-kernel: Solaris 9 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:42187 Archived-At: Peter Dyballa wrote: > > Am 25.03.2007 um 12:55 schrieb Matthew Flaschen: > > What is pstree showing? For me, on Mac OS X, and launched from some > menu, I get: > > pete 123 /\ pstree -p $$ > -+= 00001 root /sbin/launchd -v > \-+- 01695 pete -bin/tcsh -i -c /usr/local/bin/emacs-23.0.0 > -geometry 100x57+666+44 > \-+- 01700 pete /usr/local/bin/emacs-23.0.0 -geometry 100x57+666+44 > \-+= 01701 pete -bin/tcsh -i > \-+= 04001 pete pstree -p 1701 > \--- 04002 root ps -axwwo user > > An interactive tcsh stands at my beginning. All I get from that (run from a VT) is bash(12773)--pstree(12790) Clearly, it's not showing the initial shell. > When the login bash hits the first of the many personal RC files, it > only executes the first one. So, IMO, it's best to put everything > personal in Bourne shell syntax into ~/.profile, which a Bourne shell or > Bourne shell bash will read (and execute) also. I moved ~/.bashrc to ~/.bash_profile . I primarily use zsh , so I don't want to use generic profile. >> Should I source ~/.rc in ~/.profile instead? > No. Keep it simple, let bash do its job right. That's not desirable, because ~/.rc is supposed to be usable by multiple shells. Thanks, Matt Flaschen