bug-coreutils
[Top][All Lists]
Advanced

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

bug#8578: 8.12 and 8.10 'ls -dl' appends ' ' (0x20: space) to


From: Alan Curry
Subject: bug#8578: 8.12 and 8.10 'ls -dl' appends ' ' (0x20: space) to
Date: Thu, 28 Apr 2011 15:27:24 -0500 (GMT+5)

Eric Blake writes:
> 
> On 04/28/2011 12:34 PM, Jason Vas Dias wrote:
> > I do:
> >=20
> > $ ls --version | grep '[(]G'
> > ls (GNU coreutils) 8.12
> 
> Thanks for the report.
> 
> > $ ls -dl /. | od -cx
> 
> od -cx is not always the best choice in formatting - it depends on the
> endianness of your machine since it groups two bytes at a time.  I
> personally like 'od -c -tx1z' better for the type of output you are wanti=
> ng.
> 
> > 0000000   d   r   w   x   r   -   x   r   -   x   .       2   5       r=
> 
> >            7264    7877    2d72    7278    782d    202e    3532    7220=

Did anyone else notice the '.' after the drwxr-xr-x part? I bet that's
what's confusing python.

       The  file  mode  written  under the -l,   -g, -n, and -o  options shall
       consist of the following format:

              "%c%s%s%s%c", <entry type>, <owner permissions>,
                  <group permissions>, <other permissions>,
                  <optional alternate access method flag>

       The <optional alternate access method flag> shall be a  single  <space>
       if there is no alternate or additional access control method associated
       with the file; otherwise, a printable character shall be used.






reply via email to

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