[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
du: POSIX mandating a single space instead of tab?
From: |
Bernhard Voelker |
Subject: |
du: POSIX mandating a single space instead of tab? |
Date: |
Tue, 28 Apr 2015 08:43:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
Reading POSIX [0] again because of bug#20442 [1], I think that
GNU du is violating the spec:
The output from du shall consist of the amount of space allocated
to a file and the name of the file, in the following format:
"%d %s\n", <size>, <pathname>
Instead, GNU du uses "%d\t%s\n", i.e., a tab character as delimiter,
even if POSIXLY_CORRECT is set.
Do I read POSIX right? Should we fix this? I could imagine that
many scripts are relying on the tab delimiter (although I've never
seen a script using POSIXLY_CORRECT).
[0]
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html
[1]
http://bugs.gnu.org/20442
Have a nice day,
Berny
- du: POSIX mandating a single space instead of tab?,
Bernhard Voelker <=