The following issue has been SUBMITTED. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1599 
====================================================================== 
Reported By:                geoffclare
Assigned To:                
====================================================================== 
Project:                    1003.1(2016/18)/Issue7+TC2
Issue ID:                   1599
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       Geoff Clare 
Organization:               The Open Group 
User Reference:              
Section:                    strings 
Page Number:                3259 
Line Number:                109562 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2022-08-15 10:26 UTC
Last Modified:              2022-08-15 10:26 UTC
====================================================================== 
Summary:                    Unspecified behaviour for "strings -" too narrow
Description: 
The strings DESCRIPTION says:<blockquote>If the first argument is '-', the
results are unspecified.</blockquote>
However, many implementations also treat '-' as special when it is not the
first argument.  They handle it as if it were a -a option, so:

strings -n 1 - file

is equivalent to:

strings -n 1 -a file

On Solaris, macOS, and HP-UX, this includes still recognising options after
'-', e.g. for:

strings -n 1 - -t x file

the -t x is recognised as an option. (Whereas GNU, with POSIXLY_CORRECT,
reports that files named -t and x were not found.)

GNU, Solaris, and HP-UX also treat an operand of '-' that is not the first
argument as special. (For GNU it turns on -a for later files; for Solaris
it turns on -a for all files; for HP-UX it is treated as a file named
'-a'!)

Desired Action: 
On page 3259 line 109562 section strings, change:<blockquote>If the first
argument is '-', the results are unspecified.</blockquote>to:<blockquote>If
any argument is '-', the results are unspecified.</blockquote>

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2022-08-15 10:26 geoffclare     New Issue                                    
2022-08-15 10:26 geoffclare     Name                      => Geoff Clare     
2022-08-15 10:26 geoffclare     Organization              => The Open Group  
2022-08-15 10:26 geoffclare     Section                   => strings         
2022-08-15 10:26 geoffclare     Page Number               => 3259            
2022-08-15 10:26 geoffclare     Line Number               => 109562          
2022-08-15 10:26 geoffclare     Interp Status             => ---             
======================================================================


  • [1003.1(2016... 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