all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Matthew Flaschen <matthew.flaschen@gatech.edu>
Cc: emacs <help-gnu-emacs@gnu.org>
Subject: Re: "source" shell commands
Date: Sun, 25 Mar 2007 12:33:43 +0200	[thread overview]
Message-ID: <2D4FA764-9DEE-4F5C-8501-AA4E3F4787A7@Web.DE> (raw)
In-Reply-To: <4605BD72.6040904@gatech.edu>


Am 25.03.2007 um 01:08 schrieb Matthew Flaschen:

> Since I only really need JAVA_HOME, I'm just setting that manually  
> with
> setenv.

All you need to do, is to make sure that when you log-in this  
environment variable gets set. In case of (t)csh it's simple: /etc/ 
csh.login is probably read, otherwise ~/.login. In case of bash it is  
more complicated since bash also checks whether this shell is  
interactive or not, to be a login shell is not the only criterion.  
You could think of putting JAVA_HOME into /etc/.profile or into / 
etc/.bashrc or both – or into your private versions ~/.profile and/or  
~/.bashrc.

JAVA_HOME probably is an environment variable that is not specific to  
some user but is of system-wide meaning.

You can check with ps or better pstree (pstree -p $$) how you logged in.

You can put some shell script into some menu, that just prints the  
environment it sees. When you make this script start with

	#!/bin/csh -f

then this csh does not read in or source any RC files, it really only  
sees the existing environment and report this to some file.


You can also put

	echo "something specific"

or

	echo "something specific" > some specific file or /dev/console

to be informed which RC files are used during a particular action, or  
menu driven event.

--
Greetings

   Pete

If you're not confused, you're not paying attention.

  reply	other threads:[~2007-03-25 10:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1360.1174733204.7795.help-gnu-emacs@gnu.org>
2007-03-24 13:33 ` "source" shell commands Tassilo Horn
2007-03-24 14:35   ` David Kastrup
2007-03-24 15:24     ` Barry Margolin
2007-03-24 21:21       ` Matthew Flaschen
2007-03-25  0:08         ` Matthew Flaschen
2007-03-25 10:33           ` Peter Dyballa [this message]
2007-03-25 10:55             ` Matthew Flaschen
2007-03-25 11:53               ` Peter Dyballa
2007-03-26  0:44                 ` Matthew Flaschen
2007-03-26  8:16                   ` Peter Dyballa
2007-03-26  9:59                     ` Matthew Flaschen
     [not found]               ` <mailman.1412.1174823876.7795.help-gnu-emacs@gnu.org>
2007-03-25 22:36                 ` Tim X
2007-03-26  0:53                   ` Matthew Flaschen
     [not found]                   ` <mailman.1432.1174870550.7795.help-gnu-emacs@gnu.org>
2007-03-26 11:30                     ` Tim X
     [not found]       ` <mailman.1381.1174771402.7795.help-gnu-emacs@gnu.org>
2007-03-25  2:46         ` Tim X
2007-03-25  4:03           ` Matthew Flaschen
     [not found]           ` <mailman.1397.1174795525.7795.help-gnu-emacs@gnu.org>
2007-03-25 10:56             ` Tim X
2007-03-26  8:13             ` Tassilo Horn
2007-03-26  8:57               ` Matthew Flaschen
     [not found]               ` <mailman.1436.1174899596.7795.help-gnu-emacs@gnu.org>
2007-03-26  9:08                 ` Tassilo Horn
2007-03-26  9:55                   ` Matthew Flaschen
2007-03-25  2:32 ` Tim X
2007-03-25  2:59   ` Matthew Flaschen
2007-03-24 10:44 Matthew Flaschen

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=2D4FA764-9DEE-4F5C-8501-AA4E3F4787A7@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=matthew.flaschen@gatech.edu \
    /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.