From turutani@scphys.kyoto-u.ac.jp  Wed Mar 15 14:20:22 2006
Return-Path: <turutani@scphys.kyoto-u.ac.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 10BEE16A422
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Mar 2006 14:20:22 +0000 (UTC)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (polymer3.scphys.kyoto-u.ac.jp [130.54.55.55])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4C8E843D46
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Mar 2006 14:20:18 +0000 (GMT)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from h116.65.226.10.32118.vlan.kuins.net (h116.65.226.10.32118.vlan.kuins.net [10.226.65.116])
	by polymer3.scphys.kyoto-u.ac.jp (8.13.4/8.13.4/20060227-1) with ESMTP id k2FEKDvm090490;
	Wed, 15 Mar 2006 23:20:13 +0900 (JST)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from h116.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1])
	by h116.65.226.10.32118.vlan.kuins.net (8.13.4/8.13.4) with ESMTP id k2FEKCdI015008;
	Wed, 15 Mar 2006 23:20:12 +0900 (JST)
	(envelope-from turutani@h116.65.226.10.32118.vlan.kuins.net)
Received: (from turutani@localhost)
	by h116.65.226.10.32118.vlan.kuins.net (8.13.4/8.13.4/Submit) id k2FEKCIu015007;
	Wed, 15 Mar 2006 23:20:12 +0900 (JST)
	(envelope-from turutani)
Message-Id: <200603151420.k2FEKCIu015007@h116.65.226.10.32118.vlan.kuins.net>
Date: Wed, 15 Mar 2006 23:20:12 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: unnecessary space in command completion of tcsh
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         94477
>Category:       bin
>Synopsis:       [patch] unnecessary space in command completion of tcsh(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 15 14:30:17 GMT 2006
>Closed-Date:    Wed Mar 15 20:17:38 GMT 2006
>Last-Modified:  Wed Mar 15 20:17:38 GMT 2006
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 6.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD h116.65.226.10.32118.vlan.kuins.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Thu Mar 2 18:04:50 JST 2006 turutani@h116.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER13 amd64


	
>Description:
	on FreeBSD 6.1-PRERELEASE, showing the candidates of command by 
	completion of tcsh, an additional space is printed between candidates, 
	and hence, output on the screen is not clean.
	
>How-To-Repeat:
	use command completion on tcsh (tcsh 6.14).
	especially when output with more than 2 row and long command in the most
	right column.
	
>Fix:
	apply this patch:
	--- tw.parse.c.orig     Fri Mar  4 01:40:53 2005
	+++ tw.parse.c  Wed Mar 15 22:54:08 2006
	@@ -2088,6 +2088,7 @@
			    Char f = items[i][w - 1];
			    items[i][w - 1] = 0;
			    print_with_color(items[i], w - 1, f);
	+		    wx++;
			}
			else {
			    /* Print filename followed by '/' or '*' or ' ' */

	This patch is also good for original tcsh-6.14.0, but i don't know 
	how to report bugs to tcsh.
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Wed Mar 15 20:14:41 UTC 2006 
State-Changed-Why:  
We don't take software with active external maintainers off the 
vendor branch for cosmetic fixes.  Please submit this to the tcsh 
maintainers.  According to the README file in the tcsh source directory 
you can do so a couple ways ways: 

> 12) PLEASE file any bug reports (and fixes), code for new features at: 
>  
>         http://bugs.gw.com/ 
>  
>     Comments, questions, etc. (even flames) are welcome via email to: 
>  
>         The tcsh bugs mailing list 
>         tcsh-bugs@mx.gw.com 


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