help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: "source" shell commands


From: Matthew Flaschen
Subject: Re: "source" shell commands
Date: Sun, 25 Mar 2007 20:44:39 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

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




reply via email to

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