Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2006 23:20:12 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/94477: unnecessary space in command completion of tcsh
Message-ID:  <200603151420.k2FEKCIu015007@h116.65.226.10.32118.vlan.kuins.net>
Resent-Message-ID: <200603151430.k2FEUI6Y082902@freefall.freebsd.org>

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


>Number:         94477
>Category:       bin
>Synopsis:       unnecessary space in command completion of tcsh
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 15 14:30:17 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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