A NOTE has been added to this issue. 
====================================================================== 
https://www.austingroupbugs.net/view.php?id=1861 
====================================================================== 
Reported By:                stephane
Assigned To:                
====================================================================== 
Project:                    1003.1(2024)/Issue8
Issue ID:                   1861
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       Stephane Chazelas 
Organization:                
User Reference:              
Section:                    xargs utility 
Page Number:                3601 
Line Number:                123207-123214 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2024-10-11 12:32 UTC
Last Modified:              2024-10-11 16:28 UTC
====================================================================== 
Summary:                    xargs -L broken by
https://www.austingroupbugs.net/view.php?id=243 resolution
====================================================================== 

---------------------------------------------------------------------- 
 (0006913) stephane (reporter) - 2024-10-11 16:28
 https://www.austingroupbugs.net/view.php?id=1861#c6913 
---------------------------------------------------------------------- 
Actually, it looks like the combination of -0 and -L is not really covered
in the https://www.austingroupbugs.net/view.php?id=243 resolution, it should
probably be:

<<
If -0 is specified, -L number is equivalent to -n number, if not [insert
2018 edition text:] The utility shall be executed for each non-empty number
lines of arguments from standard input. The last invocation of utility
shall be with fewer lines of arguments if fewer than number remain. A line
is considered to end with the first <newline> unless the last character of
the line is an unescaped <blank>; a trailing unescaped <blank> signals
continuation to the next non-empty line, inclusive
>>

In:

<<
Fewer arguments shall be used if
- The command line length accumulated exceeds the size specified by the -s
option (or {LINE_MAX} if there is no -s option).
>>

In the description of -n, the "(or {LINE_MAX} if there is no -s option)" is
very undesirable, and I haven't found a xargs implementation that honours
that, with or without -0 (I tried GNU, FreeBSD, toybox, busybox, ast-open,
heirloom toolchest (meant to be derived from Solaris 8 IIRC, none of which
truncated the command line to LINE_MAX bytes in my tests).

That might be worth addressing at the same time. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2024-10-11 12:32 stephane       New Issue                                    
2024-10-11 12:32 stephane       Name                      => Stephane Chazelas
2024-10-11 12:32 stephane       Section                   => xargs utility   
2024-10-11 12:32 stephane       Page Number               => 3601            
2024-10-11 12:32 stephane       Line Number               => 123207-123214   
2024-10-11 16:28 stephane       Note Added: 0006913                          
======================================================================


  • [1003.1(2024... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to