|
From: | Jan Schampera |
Subject: | Re: Wrong alignment in select lists |
Date: | Tue, 01 Jun 2010 06:40:17 +0200 |
User-agent: | Mozilla-Thunderbird 2.0.0.24 (X11/20100329) |
Bernd Eggink wrote:
Select lists are sometimes displayed with incorrect vertical alignment if an item contains one or more German umlauts. Examples:select x in äöü blah{1..20}; do :; done # wrong select x in amöbe blah{1..20}; do :; done # wrong select x in amöb blah{1..20}; do :; done # wrong select x in amö blah{1..20}; do :; done # OK Bash version is 4.1.7(1)-release, LANG is de_DE.UTF-8. Bernd
It's long ago I since inspected the select code, but I think it's because it counts bytes for the space calculations. The last one succeeds because there's a minimum width reached.
J.
[Prev in Thread] | Current Thread | [Next in Thread] |