Re: Getting rid of "declare -x" statements at Terminal login



In article
<usenet.kadin-ED0D03.15210705112007@xxxxxxxxxxxxxxxxxxxxxxxx>,
Kadin2048 <usenet.kadin@xxxxxxxx> wrote:

I was recently messing around in the X11 terminal (xterm), trying vainly
to get a functioning Meta key for Emacs, and something happened that's
now causing me to get lots of "declare -x" variable statements every
time I open a login shell.

For example, when I open a terminal (either Terminal.app, iTerm, or
xterm), I see:

Last login: Mon Nov 5 15:06:04 on ttyp1
Welcome to Darwin!
declare -x HOME="/Users/kadin"
declare -x LOGNAME="kadin"
declare -x OLDPWD
declare -x PATH="/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin"
declare -x PWD="/Users/kadin"
declare -x SECURITYSESSIONID="506000"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x TERM="xterm-new"
declare -x TERM_PROGRAM="iTerm.app"
declare -x USER="kadin"
declare -x __CF_USER_TEXT_ENCODING="0x1F5:0:0"
bigbox:~ kadin$

I've gone through and deleted all the configuration files that I created
in my meta-key hunt (.xinitrc and .Xmodmap), but I *still* can't get
this stuff to go away, and it's mighty irritating, since I do a lot of
opening and closing of terminal windows.

Can anyone tell me how to make it go away / suppress it? Or even just
tell me what's causing it? (Bonus points if you know how to get a
working Emacs Option-as-Meta key in iTerm...)

Look for a "set -x" command. This tells the shell to echo the commands
as it's executing them.

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.



Relevant Pages

  • Getting rid of "declare -x" statements at Terminal login
    ... I was recently messing around in the X11 terminal (xterm), ... to get a functioning Meta key for Emacs, ... now causing me to get lots of "declare -x" variable statements every ...
    (comp.sys.mac.system)
  • Re: Web Hosting Disaster
    ... the front entrance, endangering many and causing $10,000s of dollars ... in damage. ... I would declare to them that they were violating my ...
    (misc.transport.road)
  • Re: MS VB Newbie Tutorial
    ... Is there something different in this old version that must be causing ... classic VB developpers in mind who had trouble with some of the OOP methods. ... How do I declare 'My'? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MS VB Newbie Tutorial
    ... Is there something different in this old version that must be causing ... Cor Ligthert [MVP] wrote: ... How do I declare 'My'? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: About the error message in Perl : "Missing right curly braces"
    ... track which line contains that curly brace which is causing that problem, ... Load the code into Emacs. ... Ensure cperl-mode is enabled. ...
    (perl.beginners)