On Wednesday, September 25, 2002, at 03:08  PM, Pedro Massobrio wrote:

> Maybe, this can help:
>
> Welcome to Darwin!
> TERM_PROGRAM: Undefined variable.
>
>
> There is a typo in /usr/share/tcsh/examples/aliases. Change the line 
> that says:
>
> if ("$TERM_PROGRAM" == "Apple_Terminal") then
>
> to:
>
> if ("$?TERM_PROGRAM" == "Apple_Terminal") then

That may have solved the problem, but it seems a bit weird to me. From 
the tcsh man page:

        $?name
        ${?name}
                Substitutes  the string `1' if name is set, `0' if
                it is not.

So if $TERM_PROGRAM is undefined as is the case, the test becomes:

   if ("0" == "Apple_Terminal") then
       alias settermtitle ...
   endif

Which gets rid of the undefined variable error. However it makes the 
test always fail, since "0" or "1" is never equal to "Apple_Terminal". 
So making the suggested change will probably mean that the title never 
gets updated. No big loss, but the 'correct' fix would be to test for 
undefined and handle that.

-- 
Rohan Lloyd



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to