Subject: bin/34724: ksh line wrapping is unusable
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/05/2006 23:25:00
>Number:         34724
>Category:       bin
>Synopsis:       ksh prompt line wrapping is often unreadable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 05 23:25:00 +0000 2006
>Originator:     Jeremy C. Reed
>Release:        NetBSD 3.99.24
>Organization:
	
>Environment:
	
	
System: NetBSD glacier.reedmedia.net 3.99.24 NetBSD 3.99.24 (JCR20060802) #0: Mon Sep 25 12:22:43 CDT 2006 reed@new-host-8:/usr/src/sys/arch/i386/compile/JCR20060802 i386
Architecture: i386
Machine: i386
>Description:
If your ksh command line becomes long, it often doesn't wrap around
console to next line well.

Frequently you can't even see the line you are working on nor see where you
are typing. This is a great inconvenience.
>How-To-Repeat:
I can repeat it every time and for a long time.

Simple have a long command line that wraps to next line and then try to
go back and forth with left and right arrow key and guess where you are at.

Also this can easily be repeated by having a long custom PS1 prompt. This makes the problem worse and really makes the prompt become unreadable.

Start typing a long command like "this is a long line and 2 this is a long line and 3 this is a long line and 4 this is a long line and 5 this is a long line and ..." (no quotes).

And then try again after setting a long PS1. It gets worse.
>Fix:

sh and csh and Bash will show long lines wrapped. Maybe ksh should
do the same?

>Unformatted: