Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2002 09:39:02 -0700 (PDT)
From:      Daichi GOTO <daichi@ongs.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/38296: about hosts variable setting of /usr/share/examples/tcsh/complete.tcsh
Message-ID:  <200205191639.g4JGd2pd041082@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38296
>Category:       conf
>Synopsis:       about hosts variable setting of /usr/share/examples/tcsh/complete.tcsh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 19 09:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205191639.g4JGd2pd041082>