all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Different shell behavior during start up
@ 2014-10-16 14:59 Doug Lewan
  0 siblings, 0 replies; only message in thread
From: Doug Lewan @ 2014-10-16 14:59 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

To begin: I have a work-around for the issue described below, but I'd like to understand what's going on.

In my .emacs I have `(shell)' and that (1) does not run my .bash_profile and therefore (2) picks up the current shell environment.

I'd like a second shell that behaves the same way, but all of the following run my profile and therefore overwrite the current shell environment:

C-u M-x shell <RET> *build*
M-: (shell "*build*")
M-: (let ((explicit-bash-args (delete "-i" explicit-bash-args))) (shell "*build*"))
$ emacs -eval '(shell "*build*")'
$ emacs -eval '(let ((explicit-bash-args (delete "-i" explicit-bash-args))) (shell "*build*"))'

The invocations that reset explicit-bash-args do indeed redefine it, but the effect seems to be global.

Can anyone help me understand what the difference between `(shell)' and the other evaluations is? I do notice that `-eval' is not mentioned as an initialization option (info "(emacs) Initial Options"), so I assume that all of the above are really operating under the same conditions.

Thanks for any insight.

-- 
,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224 or ext 4335

"This is a slow pup," he said continuing his ascent.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-16 14:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 14:59 Different shell behavior during start up Doug Lewan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.