On Thu, Jul 19, 2007 at 11:33:18 -0400, Clint Adams wrote:
>On Thu, Jul 19, 2007 at 11:35:12AM +0100, Magnus Therning wrote:
>> The completion for tin doesn't take into account the TIN_HOMEDIR
>> environment variable when looking for newshosts.  Here's a fix for that:
>> 
[...]
>
>I'm gonna stick a colon in there, since it doesn't do much good not
>having one, I think.
>
>Index: Completion/Unix/Command/_tin
>===================================================================
>RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_tin,v
>retrieving revision 1.1
>diff -u -r1.1 _tin
>--- Completion/Unix/Command/_tin       2 Apr 2001 12:04:41 -0000       1.1
>+++ Completion/Unix/Command/_tin       19 Jul 2007 15:29:59 -0000
>@@ -37,7 +37,7 @@
>   '::newsgroup:_newsgroups' && return 0
> 
> if [[ "$state" = newshosts ]]; then
>-  newshosts=( ${${(f)"$(<~/.tin/newsrctable)"}%%\#*} ) 2>/dev/null
>+  newshosts=( ${${(f)"$(<${TIN_HOMEDIR:-$HOME}/.tin/newsrctable)"}%%\#*} ) 
>2>/dev/null
>   _tags hosts nicknames
>   while _tags; do
>     _requested hosts expl 'NNTP server hostname' \

Hmmm, it was working just fine without that colon, but maybe that's due
to some compatibility-thing in ZSH that's on by default (or by a mistake
of mine)... it is a bit of a beast in that way :-)

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]             Jabber: [EMAIL PROTECTED]
http://therning.org/magnus

Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety
     -- Benjamin Franklin, Historical Review of Pennsylvania, 1759

Attachment: pgpSx3GASzVxj.pgp
Description: PGP signature

Reply via email to