• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TERM_PROGRAM: Undefined variable.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TERM_PROGRAM: Undefined variable.


  • Subject: Re: TERM_PROGRAM: Undefined variable.
  • From: Martin Costabel <email@hidden>
  • Date: Tue, 14 Jan 2003 08:00:44 +0100

Dave Schroeder wrote:
In /usr/share/tcsh/examples/aliases, change

if ("$TERM_PROGRAM" == "Apple_Terminal") then

to

if ("$?TERM_PROGRAM" == "Apple_Terminal") then

While this eliminates the error message, it does not fix the bug. You could just as well remove the 3 lines in question, because the condition you write is never satisfied: $?TERM_PROGRAM only takes the two values 0 and 1.


Gibbons Burke wrote:
> That's it indeed - thanks. I like Wilfredo Sanchez' setup scripts; this
> seems a minor glitch.

You probably can't blame Fred Sanchez for this one. It was not present in the pre-Jaguar version of this script in /usr/share/init/tcsh. It is only when they relegated the tcsh startup scripts to /usr/share/tcsh/examples and made them inactive by default that this bug appeared. This was around the time when Fred Sanchez left Apple. Go figure.

--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: TERM_PROGRAM: Undefined variable.
      • From: Eugene Lee <email@hidden>
References: 
 >Re: TERM_PROGRAM: Undefined variable. (From: Dave Schroeder <email@hidden>)

  • Prev by Date: xman error - no manual pages found
  • Next by Date: Re: TERM_PROGRAM: Undefined variable.
  • Previous by thread: Re: TERM_PROGRAM: Undefined variable.
  • Next by thread: Re: TERM_PROGRAM: Undefined variable.
  • Index(es):
    • Date
    • Thread