A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1146 ====================================================================== Reported By: stephane Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1146 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Stephane Chazelas Organization: User Reference: Section: ls utility Page Number: 2928 Line Number: 96855 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2017-06-15 19:50 UTC Last Modified: 2018-11-29 17:05 UTC ====================================================================== Summary: "total" line in ls -l output ======================================================================
---------------------------------------------------------------------- (0004172) nick (manager) - 2018-11-29 17:05 http://austingroupbugs.net/view.php?id=1146#c4172 ---------------------------------------------------------------------- Interpretation response ------------------------ The standard states that ls lists the space requirements for all files in a directory, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor. Rationale: ------------- This is not (and never has been) existing practice. Notes to the Editor (not part of this interpretation): ------------------------------------------------------- On page 2928 line 96855 section ls, change: <blockquote> ... each list of files within the directory shall be preceded by a status line indicating the number of file system blocks occupied by files in the directory ... </blockquote> to: <blockquote> ... each list of files within a directory shall be preceded by a status line indicating the number of file system blocks occupied by the listed files for that directory ... </blockquote> Add to Application Usage on p2930 after line 96908: <blockquote> The <tt>total</tt> number provided when using <i>ls</i> <b>-l</b> does not necessarily correspond to the space that would be reclaimed if all the listed files were removed, because of hard links (and symbolic links if <b>-L</b> is present). The space for each listed file is counted in the total regardless of any relationship between the files. </blockquote> Issue History Date Modified Username Field Change ====================================================================== 2017-06-15 19:50 stephane New Issue 2017-06-15 19:50 stephane Name => Stephane Chazelas 2017-06-15 19:50 stephane Section => ls utility 2017-06-15 19:50 stephane Page Number => 2928 2017-06-15 19:50 stephane Line Number => 96855 2018-11-29 17:05 nick Note Added: 0004172 ======================================================================
