Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: a REMOTEHOST variable
- X-seq: zsh-workers 4
- From: Duncan Sinclair <sinclair@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: a REMOTEHOST variable
- Date: Thu, 18 May 1995 11:24:09 +0100
- In-reply-to: Your message of "Thu, 18 May 1995 00:06:19 BST."
Zefram writes:
>>it is the address of the remote host!
>Unnecessary, IMHO. If one really wants it, it's easy enough to set up in a
>few lines of script.
>
> -zefram
I disagree of two counts:
1) It's not useful.
2) It's not easy to get it in a few lines of script.
My arguments:
1) It's not useful:
Most people who want the value of "REMOTEHOST" want it to set up a value
of "DISPLAY". This is the wrong way to do it, and you're much better off
using a program like "rxx" [available from all good X11/contrib archives
near you] to propagate the correct valur of "DISPLAY".
2) It's not easy to get it in a few lines of script:
This information is not stored in a complete form anywhere, and so is
difficult to re-create without using programs like "netstat", and even
then you're not 100% sure you're right.
However, I did promise many moons ago that I would hack this into zsh.
I'll take another look at it sometime - I'm currently hacking http
servers, fax modems and apple/unix printing.
Cheers,
Duncan.
PS> Thanks Richard for these new lists, but a little more notice to
update my .procmailrc might have been handy! ;-)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author