There are several things about this suggestion I don't understand:

(1) According to the man tcsh, "$?TERM_PROGRAM" will evaluate to '0' or '1', depending
on whether TERM_PROGRAM is defined. The '==' operator in tcsh compares string values. So if your change is made, the expression in the condition will (I think) never be true. If that's what you're trying to accomplish, why not just delete the whole conditional?

(2) The specific condition in /usr/share/tcsh/examples determines whether the alias "settermtitle" is set. If the condition evaluates to true, the alias settermtitle will run the command 'echo -n "ESC]2;\!:1^G"'. If it evaluates to false (which again would be the effect of your change), it won't. How could this possibly affect the startup of emacs?

(3) Are the scripts in /usr/share/tcsh/examples run when tcsh starts up? The name would seem to suggest otherwise.

(4) As someone else has already asked, assuming for the moment this changes works for someone running tcsh, how can it help someone running bash?

On Saturday, August 31, 2002, at 01:50 AM, Pedro Massobrio wrote:

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

to:

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


On Saturday, August 31, 2002, at 04:23 AM, Viktor Haag wrote:

And my TERM_PROGRAM inside terminall.app is "Apple_Terminal".

Reply via email to