I do:
$ ls --version | grep '[(]G'
ls (GNU coreutils) 8.12
$ ls -dl /. | od -cx
0000000 d r w x r - x r - x . 2 5 r
7264 7877 2d72 7278 782d 202e 3532 7220
0000020 o o t r o o t 4 0 9 6 A p
6f6f 2074 6f72 746f 3420 3930 2036 7041
0000040 r 2 0 1 5 : 2 8 / . \n
2072 3032 3120 3a35 3832 2f20 0a2e
0000056
Please could the ls developer let me know if it 100% POSIXLY correct
that ls appends 0x20 to the filename '/.' here ?
I believe confusion over this issue is at the root of Python bug #11946 :
http://bugs.python.org/issue11946
because Python isn't handling the trailing space.
Thanks for an otherwise flawless coreutils & Regards,
Jason (JVD) <[email protected]>