all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Doug Lewan <dougl@shubertticketing.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Different shell behavior during start up
Date: Thu, 16 Oct 2014 14:59:57 +0000	[thread overview]
Message-ID: <155DEC68569B714B86C2C7075F5EDA9892B4D10D@DAKIYA1.pegasus.local> (raw)

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.





                 reply	other threads:[~2014-10-16 14:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=155DEC68569B714B86C2C7075F5EDA9892B4D10D@DAKIYA1.pegasus.local \
    --to=dougl@shubertticketing.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.