A NOTE has been added to this issue. 
====================================================================== 
https://www.austingroupbugs.net/view.php?id=1927 
====================================================================== 
Reported By:                dwheeler
Assigned To:                ajosey
====================================================================== 
Project:                    1003.1(2008)/Issue 7
Issue ID:                   1927
Category:                   Shell and Utilities
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     Under Review
Name:                       David A. Wheeler 
Organization:               The Linux Foundation 
User Reference:             Utilities 
Section:                    Utilities 
Page Number:                NA 
Line Number:                NA 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2025-06-01 01:18 UTC
Last Modified:              2025-09-11 17:16 UTC
====================================================================== 
Summary:                    Add sponge utility
====================================================================== 

---------------------------------------------------------------------- 
 (0007255) hvd (reporter) - 2025-09-11 17:16
 https://www.austingroupbugs.net/view.php?id=1927#c7255 
---------------------------------------------------------------------- 
Re https://www.austingroupbugs.net/view.php?id=1927#c7219:

> It's typically used as part of a larger sequence of pipelines with potentially
large files.

But for that case, it doesn't really matter whether sponge replaces the file's
contents, or the file, and both implementations would work fine. An option would
be to add the utility with the existing name, but leaving that detail
unspecified.

> The fact that they *changed* the code to do this, even though it takes more
code, suggests that this is the most widely expected default ("do the best you
can").

That isn't why they changed the code to do this. The reason is mentioned in the
commit message: "make sponge use a temp file if the input is large". The
previous implementation kept the full input in memory, which could fail.

I don't think the utility is common enough to make comments about the most
widely expected default either way, personally. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2025-06-01 01:18 dwheeler       New Issue                                    
2025-06-01 01:18 dwheeler       Status                   New => Under Review 
2025-06-01 01:18 dwheeler       Assigned To               => ajosey          
2025-06-11 16:49 dwheeler       Note Added: 0007198                          
2025-06-22 08:43 stephane       Note Added: 0007207                          
2025-06-26 15:28 eblake         Note Added: 0007211                          
2025-06-26 15:41 eblake         Note Edited: 0007211                         
2025-06-26 15:45 eblake         Note Added: 0007212                          
2025-06-26 17:39 enh            Note Added: 0007214                          
2025-07-04 02:11 dwheeler       Note Added: 0007219                          
2025-09-11 14:45 dwheeler       Note Added: 0007252                          
2025-09-11 17:16 hvd            Note Added: 0007255                          
======================================================================


  • [1003.1(20... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
      • R... Steffen Nurpmeso via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
      • R... Steffen Nurpmeso via austin-group-l at The Open Group
        • ... Steffen Nurpmeso via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group
    • [1003... Austin Group Issue Tracker via austin-group-l at The Open Group

Reply via email to