[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "ls" spacing between columns
From: |
Alfred M. Szmidt |
Subject: |
Re: "ls" spacing between columns |
Date: |
Sun, 11 Apr 2004 00:18:13 +0200 |
> And to be a real nitpicker, there should be only one space
> between the <file mode> and <number of links> filed from GNU ls
> if one should follow POSIX stricly...
Maybe you didn't notice that the mode string actually consists of
11 characters, the last of which is often a space?
Doh. No I did not. Thanks.
> Mmm... Maybe there is even a smallish bug in POSIX, from the
> example section (ls -laRF):
>
> -rwxr--r-- 1 hlj prog 572 Jul 4 12:07 foo*
>
> That doesn't corespond with the above rule for -l. Should this
> be reported to the OpenGroup?
What part doesn't correspond?
One (two for the file permission and link count) space between each
field. Where as the example has more then one/two spaces between each
field.
"%s %u %s %s %u %s %s\n", <file mode>, <number of links>,
<owner name>, <group name>, <number of bytes in the file>,
<date and time>, <pathname>
Re: "ls" spacing between columns, Jim Meyering, 2004/04/10