GNU bug report logs - #26727
Plain ls (from coreutils git master local build) sometimes emit leading spaces at output lines

Previous Next

Package: coreutils;

Reported by: Shlomi Fish <shlomif <at> shlomifish.org>

Date: Mon, 1 May 2017 09:19:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26727 in the body.
You can then email your comments to 26727 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#26727; Package coreutils. (Mon, 01 May 2017 09:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shlomi Fish <shlomif <at> shlomifish.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 01 May 2017 09:19:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shlomi Fish <shlomif <at> shlomifish.org>
To: bug-coreutils <at> gnu.org
Subject: Plain ls (from coreutils git master local build) sometimes emit
 leading spaces at output lines
Date: Mon, 1 May 2017 12:17:52 +0300
On Mageia x86-64 6 and fedora 26 x86-64, I am getting this with an ls
inovcation with ls from coreutils git master commit
d91e912343ab04b37d011b5c8a7c0723edc35e3d :

shlomif <at> telaviv1:~$ /home/shlomif/apps/to-del-coreutils/bin/ls
 apps   Backup   conf      Docs       Mail    node_modules   tmp
 Arcs   bin      Desktop   Download   Music   progs         'VirtualBox VMs'
shlomif <at> telaviv1:~$ ls # mageia v6's
apps  Backup  conf     Docs      Mail   node_modules  tmp
Arcs  bin     Desktop  Download  Music  progs         'VirtualBox VMs'
shlomif <at> telaviv1:~$


As you can see, in the git master output there are leading spaces in the output
lines. Can and should this be fixed?

Regards,

	Shlomi


-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/




Information forwarded to bug-coreutils <at> gnu.org:
bug#26727; Package coreutils. (Mon, 01 May 2017 16:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 26727 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Shlomi Fish <shlomif <at> shlomifish.org>, 26727 <at> debbugs.gnu.org
Subject: Re: bug#26727: Plain ls (from coreutils git master local build)
 sometimes emit leading spaces at output lines
Date: Mon, 1 May 2017 09:12:40 -0700
tag 26727 notabug
close 26727
stop

On 01/05/17 02:17, Shlomi Fish wrote:
> On Mageia x86-64 6 and fedora 26 x86-64, I am getting this with an ls
> inovcation with ls from coreutils git master commit
> d91e912343ab04b37d011b5c8a7c0723edc35e3d :
> 
> shlomif <at> telaviv1:~$ /home/shlomif/apps/to-del-coreutils/bin/ls
>  apps   Backup   conf      Docs       Mail    node_modules   tmp
>  Arcs   bin      Desktop   Download   Music   progs         'VirtualBox VMs'
> shlomif <at> telaviv1:~$ ls # mageia v6's
> apps  Backup  conf     Docs      Mail   node_modules  tmp
> Arcs  bin     Desktop  Download  Music  progs         'VirtualBox VMs'
> shlomif <at> telaviv1:~$
> 
> 
> As you can see, in the git master output there are leading spaces in the output
> lines. Can and should this be fixed?

That was done to better align items when 'quotes' are added on some items.
It's a trade off and your example is pretty much worst case.
If you prefer you can get original output by adding -N to your ls alias.

thanks,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#26727; Package coreutils. (Tue, 02 May 2017 10:00:02 GMT) Full text and rfc822 format available.

Message #11 received at 26727 <at> debbugs.gnu.org (full text, mbox):

From: Shlomi Fish <shlomif <at> shlomifish.org>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 26727 <at> debbugs.gnu.org
Subject: Re: bug#26727: Plain ls (from coreutils git master local build)
 sometimes emit leading spaces at output lines
Date: Tue, 2 May 2017 12:30:22 +0300
On Mon, 1 May 2017 09:12:40 -0700
Pádraig Brady <P <at> draigBrady.com> wrote:

> tag 26727 notabug
> close 26727
> stop
> 
> On 01/05/17 02:17, Shlomi Fish wrote:
> > On Mageia x86-64 6 and fedora 26 x86-64, I am getting this with an ls
> > inovcation with ls from coreutils git master commit
> > d91e912343ab04b37d011b5c8a7c0723edc35e3d :
> > 
> > shlomif <at> telaviv1:~$ /home/shlomif/apps/to-del-coreutils/bin/ls
> >  apps   Backup   conf      Docs       Mail    node_modules   tmp
> >  Arcs   bin      Desktop   Download   Music   progs         'VirtualBox VMs'
> > shlomif <at> telaviv1:~$ ls # mageia v6's
> > apps  Backup  conf     Docs      Mail   node_modules  tmp
> > Arcs  bin     Desktop  Download  Music  progs         'VirtualBox VMs'
> > shlomif <at> telaviv1:~$
> > 
> > 
> > As you can see, in the git master output there are leading spaces in the
> > output lines. Can and should this be fixed?  
> 
> That was done to better align items when 'quotes' are added on some items.
> It's a trade off and your example is pretty much worst case.
> If you prefer you can get original output by adding -N to your ls alias.
> 

Thanks for the insight!

> thanks,
> Pádraig



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
http://youtu.be/xZLwtc9x4yA - Anime in Real Life!! (Parody)

Bachelors know more about women than married men. If they didn't, they'd be
married, too.
    — http://en.wikiquote.org/wiki/H._L._Mencken

Please reply to list if it's a mailing list post - http://shlom.in/reply .




Information forwarded to bug-coreutils <at> gnu.org:
bug#26727; Package coreutils. (Tue, 02 May 2017 15:12:01 GMT) Full text and rfc822 format available.

Message #14 received at 26727 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>,
 Shlomi Fish <shlomif <at> shlomifish.org>, 26727 <at> debbugs.gnu.org
Subject: Re: bug#26727: Plain ls (from coreutils git master local build)
 sometimes emit leading spaces at output lines
Date: Tue, 2 May 2017 08:11:43 -0700
On 05/01/2017 09:12 AM, Pádraig Brady wrote:
> That was done to better align items when 'quotes' are added on some items.

Couldn't 'ls' add these spaces only in columns that contain both quoted 
and unquoted names, and not bother with the spaces in other columns? 
That would be a more-efficient use of valuable screen real estate.





Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 29 Oct 2018 03:11:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 26727 <at> debbugs.gnu.org and Shlomi Fish <shlomif <at> shlomifish.org> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 29 Oct 2018 03:11:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 26 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.