A NOTE has been added to this issue. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1538 
====================================================================== 
Reported By:                andras_farkas
Assigned To:                
====================================================================== 
Project:                    1003.1(2016/18)/Issue7+TC2
Issue ID:                   1538
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Editorial
Priority:                   normal
Status:                     Interpretation Required
Name:                       Andras Farkas 
Organization:                
User Reference:              
Section:                    what 
Page Number:                3437 
Line Number:                116041 
Interp Status:              Proposed 
Final Accepted Text:        https://austingroupbugs.net/view.php?id=1538#c5675 
====================================================================== 
Date Submitted:             2021-12-05 06:48 UTC
Last Modified:              2022-06-21 09:16 UTC
====================================================================== 
Summary:                    what -s is poorly described, uses the word "quit"
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0001563 Wording for what seem to imply odd beha...
====================================================================== 

---------------------------------------------------------------------- 
 (0005857) geoffclare (manager) - 2022-06-21 09:16
 https://austingroupbugs.net/view.php?id=1538#c5857 
---------------------------------------------------------------------- 
Suggested new resolution (note that bug
https://austingroupbugs.net/view.php?id=1563 already fixed STDOUT, so
this should just be about -s) ...

Interpretation response
------------------------
The standard is unclear on this issue, and no conformance distinction can
be made between alternative implementations based on this. This is being
referred to the sponsor.

Rationale:
-------------
The use of the word "quit" can be interpreted as allowing <i>what</i> to
exit without processing later files, whereas the intention is that it skips
to the next file.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------

On page 3437 line 116032 section what, after applying bug 1563
change:<blockquote>The <i>what</i> utility shall write to standard output
what follows until the first occurrence ...</blockquote>to:<blockquote>The
<i>what</i> utility shall write to standard output the identification
string that follows up to, but not including, the first occurrence
...</blockquote>
On page 3437 line 116038 section what (-s option), change:<blockquote>Quit
after finding the first occurrence of the pattern in each
file.</blockquote>to:<blockquote>Write at most one identification string
for each file. After locating and writing to standard output the
identification string following the first pattern (if any) in a file, no
further data shall be read from that file and the search shall recommence
from the beginning of the next file, if any</blockquote>
On page 3438 line 116099 section what, change RATIONALE
from:<blockquote>None.</blockquote>to:<blockquote>The standard requires
that when the <b>-s</b> option is used, <i>what</i> does not continue
reading from the current file after writing the first identification
string. This might seem an unimportant detail, but applications would
experience different behavior if a <i>file</i> operand names a FIFO special
file and <i>what</i> waited for an end-of-file condition rather than
closing the file straight away.</blockquote> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2021-12-05 06:48 andras_farkas  New Issue                                    
2021-12-05 06:48 andras_farkas  Name                      => Andras Farkas   
2021-12-05 06:48 andras_farkas  Section                   => what            
2022-02-17 09:02 Don Cragun     Page Number               => 3437            
2022-02-17 09:02 Don Cragun     Line Number               => 116041          
2022-02-17 09:02 Don Cragun     Interp Status             => ---             
2022-02-17 15:57 geoffclare     Note Added: 0005674                          
2022-02-17 17:00 geoffclare     Note Added: 0005675                          
2022-02-17 17:02 geoffclare     Final Accepted Text       =>
https://austingroupbugs.net/view.php?id=1538#c5675    
2022-02-17 17:02 geoffclare     Status                   New => Interpretation
Required
2022-02-17 17:02 geoffclare     Resolution               Open => Accepted As
Marked
2022-02-17 17:03 geoffclare     Interp Status            --- => Pending      
2022-02-17 17:03 geoffclare     Tag Attached: tc3-2008                       
2022-02-18 09:14 kre            Note Added: 0005680                          
2022-02-18 09:39 geoffclare     Note Added: 0005681                          
2022-02-18 14:39 andras_farkas  Note Added: 0005682                          
2022-02-18 15:07 andras_farkas  Note Added: 0005683                          
2022-02-18 19:20 kre            Note Added: 0005687                          
2022-02-18 19:27 kre            Note Added: 0005688                          
2022-03-25 17:08 agadmin        Interp Status            Pending => Proposed 
2022-03-25 17:08 agadmin        Note Added: 0005764                          
2022-04-26 11:08 geoffclare     Note Added: 0005821                          
2022-06-20 15:02 kre            Note Added: 0005854                          
2022-06-20 15:17 kre            Note Edited: 0005854                         
2022-06-20 16:57 kre            Note Edited: 0005854                         
2022-06-20 17:00 kre            Note Edited: 0005854                         
2022-06-21 08:54 geoffclare     Relationship added       related to 0001563  
2022-06-21 09:16 geoffclare     Note Added: 0005857                          
======================================================================


  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • Re: [10... Robert Elz via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • Re: [10... Quentin Rameau via austin-group-l at The Open Group
      • Re:... Geoff Clare via austin-group-l at The Open Group
  • Re: [1003.1(... Robert Elz via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to