bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coreutils] Bug: ls --tabsize=4


From: Philip Ganchev
Subject: [coreutils] Bug: ls --tabsize=4
Date: Fri, 23 May 2008 23:51:22 -0400

Hi,

"ls" with a tab size other than 8 produces mis-formatted output in my
in Xterm, gnome-terminal and Linux console (see attached screenshots).
Though the output pasted from the X selection looks slightly
different, it is wider than $COLUMNS, and is not formatted as a table
no matter at what width it is wrapped.  This happens in Bash
3.2.39(1)-release (i486-pc-linux-gnu), and Zsh 4.3.4
(i686-pc-linux-gnu).

% /bin/ls --tabsize=4
activism                                          dissertation
        Pictures
admin                                             Documents
        Recreation
ALS clinical.ods                          grant proposal
        rl.html
ALS project sample info.xls   #hello#
        spec_av.m
ALS SPOTLIGHT June, 2007.pdf  learning BN - Heckerman.ps.Z      spec_av.m~
bin                                                       lib
        src
comp-struct-bio-course.txt        Link to phgst3
        startup.m
config-backup                             lung_cancer_info
        tech
cs                                                        Music
        TempExampleOfCF.xls
data                                              papers
        Templates
Desktop                                           photos

% echo $COLUMNS
80

% echo "activism                                          dissertation
                Pictures" | wc -c
88

% /bin/ls --version
ls (GNU coreutils) 6.10
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard Stallman and David MacKenzie.

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 8.04
Release:        8.04
Codename:       hardy

Attachment: ls_--tabsize=4.png
Description: PNG image

Attachment: ls_--tabsize=8.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]