Try...
# If TERM_PROGRAM is defined and it is an Apple Terminal then...
if ( $?TERM_PROGRAM) then
if ("$TERM_PROGRAM" == "Apple_Terminal") then
alias settermtitle ...
endif
endif
or just comment the lines out completely.
Incidentally, the alias definition provided in all the examples I have seen is not
wildly useful and quite why that would be required fro an Apple Terminal I'm not sure.
It doesn't appear to do what it says on the tin (i.e. set the term title). Anyone care
to enlighten me?
Later,
Andy
-------------
Yada, yada, yada...
The information contained in this e-mail (including any attachments) is confidential
and is intended for the use of the addressee only. The opinions expressed within
this e-mail (including any attachments) are the opinions of the sender and do not
necessarily constitute those of Roslin Institute (Edinburgh) ("the Institute") unless
specifically stated by a sender who is duly authorised to do so on behalf of the
Institute.
> -----Original Message-----
> From: Rohan Lloyd [mailto:[EMAIL PROTECTED]]
> Sent: 25 September 2002 10:06
> To: Pedro Massobrio
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Fink-users] keyboard problem in kde
>
>
>
> 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
>
-------------------------------------------------------
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