Anonymous | Login | 2025-01-14 15:38 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001599 | [1003.1(2016/18)/Issue7+TC2] Shell and Utilities | Objection | Error | 2022-08-15 10:26 | 2024-06-11 09:07 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | strings | ||||||
Page Number | 3259 | ||||||
Line Number | 109562 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0001599: Unspecified behaviour for "strings -" too narrow | ||||||
Description |
The strings DESCRIPTION says:If the first argument is '-', the results are unspecified. 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:If the first argument is '-', the results are unspecified.to: If any argument is '-', the results are unspecified. |
||||||
Tags | tc3-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |