From nobody@www.freebsd.org  Sun May 19 09:39:05 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 1655D37B40E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 May 2002 09:39:03 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4JGd2hG041083
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 May 2002 09:39:02 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4JGd2pd041082;
	Sun, 19 May 2002 09:39:02 -0700 (PDT)
Message-Id: <200205191639.g4JGd2pd041082@www.freebsd.org>
Date: Sun, 19 May 2002 09:39:02 -0700 (PDT)
From: Daichi GOTO <daichi@ongs.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: about hosts variable setting of /usr/share/examples/tcsh/complete.tcsh
X-Send-Pr-Version: www-1.0

>Number:         38296
>Category:       conf
>Synopsis:       about hosts variable setting of /usr/share/examples/tcsh/complete.tcsh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 19 09:40:01 PDT 2002
>Closed-Date:    Sat Aug 10 11:21:41 PDT 2002
>Last-Modified:  Sat Aug 10 11:21:41 PDT 2002
>Originator:     Daichi GOTO
>Release:        FreeBSD 4.6-Prerelease
>Organization:
ONGS Inc.
>Environment:
FreeBSD parancell.ongs.co.jp 4.6-PRERELEASE-20020511-JPSNAP FreeBSD 4.6-PRERELEASE-20020511-JPSNAP #1: Wed May 15 04:04:16 JST 2002     root@bigchicken.ongs.net:/usr/src/sys/compile/BIGCHICKEN  i386



>Description:
I want to add a function to Tcsh enhancement 
completion configuration file
/usr/share/examples/tcsh/complete.tcsh.
I add some host anem to the hosts variable from ${HOME}/.ssh/known_hosts. This setting is useful.
>How-To-Repeat:
Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=38294
That is my problem report about complete.tcsh file.

>Fix:
--- /usr/share/examples/tcsh/complete.tcsh.orig	Mon May 20 00:54:31 2002
+++ /usr/share/examples/tcsh/complete.tcsh	Mon May 20 01:31:27 2002
@@ -31,6 +31,10 @@
 	set f=`awk '/machine/ { print $2 }' < $HOME/.netrc` >& /dev/null
 	set hosts=($hosts $f)
     endif
+    if ( -r $HOME/.ssh/known_hosts ) then
+        set f=`cat $HOME/.ssh/known_hosts | cut -f 1 -d \ ` >& /dev/null
+        set hosts=($hosts $f)
+    endif
     unset f
     if ( ! $?hosts ) then
 	set hosts=(hyperion.ee.cornell.edu phaeton.ee.cornell.edu \

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mp 
Responsible-Changed-By: mp 
Responsible-Changed-When: Sun Jul 7 09:25:16 PDT 2002 
Responsible-Changed-Why:  
I submitted this to the tcsh mailing list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38296 
State-Changed-From-To: open->closed 
State-Changed-By: mp 
State-Changed-When: Sat Aug 10 11:21:27 PDT 2002 
State-Changed-Why:  
Fixed in tcsh-6.12.00. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38296 
>Unformatted:
