View Issue Details

IDProjectCategoryView StatusLast Update
00015531003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:07
Reporterandras_farkas Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameAndras Farkas
Organization
User Reference
Sectionfind
Page Number
Line Number
Interp Status---
Final Accepted Text0001553:0005759
Summary0001553: find has two references to -n option that should be about -name
DescriptionOn:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html
There are two references to an "-n option" that should be "-name primary"

> Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements used in the pattern matching notation for the -n option and in the extended regular expression defined for the yesexpr locale keyword in the LC_MESSAGES category.
> This variable determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments), the behavior of character classes within the pattern matching notation used for the -n option, and the behavior of character classes within regular expressions used in the extended regular expression defined for the yesexpr locale keyword in the LC_MESSAGES category.
This error is also in previous versions of the standard.

They should instead say "-name primary".

It is quite possible that "-n option" should be changed to "-name and -path primaries" instead. Should LC_COLLATE and LC_MESSAGES also apply to -path?
Desired ActionChange
> Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements used in the pattern matching notation for the -n option and in the extended regular expression defined for the yesexpr locale keyword in the LC_MESSAGES category.
to:
Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements used in the pattern matching notation for the -name primary and in the extended regular expression defined for the yesexpr locale keyword in the LC_MESSAGES category.

Change:
> This variable determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments), the behavior of character classes within the pattern matching notation used for the -n option, and the behavior of character classes within regular expressions used in the extended regular expression defined for the yesexpr locale keyword in the LC_MESSAGES category.
to
This variable determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments), the behavior of character classes within the pattern matching notation used for the -name primary, and the behavior of character classes within regular expressions used in the extended regular expression defined for the yesexpr locale keyword in the LC_MESSAGES category.
Tagstc3-2008

Relationships

related to 0001031 Closed 1003.1(2013)/Issue7+TC1 Add -iname (case-insensitive name search) to the find utility. 

Activities

geoffclare

2022-01-17 10:00

manager   bugnote:0005614

These problems have been fixed in the Issue 8 drafts as a side-effect of adding the -iname primary. See bug 0001031.

The are two options for handling this new bug:

1. Close it as a dup of 1031.

2. Resolve it with the same change that was made in 1031 but omitting -iname, and tag it tc3-2008.

Effectively the only difference between these options is what would happen in the unlikely event that we end up doing a TC3.

andras_farkas

2022-01-17 18:42

reporter   bugnote:0005618

I see: thanks for pointing out bug 1031 to me.
I'd prefer the 2nd option, myself, for I feel bug fixes are generally useful.

geoffclare

2022-03-24 16:00

manager   bugnote:0005759

On page 2800 line 92074 (XCU section find (LC_COLLATE)), change:
used in the pattern matching notation for the -n option
to:
used in the pattern matching notation for the -name and -path primaries

On page 2800 line 92079 (XCU section find (LC_CTYPE)), change:
within the pattern matching notation used for the -n option
to:
within the pattern matching notation used for the -name and -path primaries


Note to the editor: this does not need to be merged into the Issue 8 branch as it has already been fixed there.

Issue History

Date Modified Username Field Change
2022-01-17 03:05 andras_farkas New Issue
2022-01-17 03:05 andras_farkas Name => Andras Farkas
2022-01-17 03:05 andras_farkas Section => find
2022-01-17 10:00 geoffclare Note Added: 0005614
2022-01-17 10:00 geoffclare Relationship added related to 0001031
2022-01-17 18:42 andras_farkas Note Added: 0005618
2022-03-24 16:00 geoffclare Note Added: 0005759
2022-03-24 16:01 geoffclare Interp Status => ---
2022-03-24 16:01 geoffclare Final Accepted Text => 0001553:0005759
2022-03-24 16:01 geoffclare Status New => Resolved
2022-03-24 16:01 geoffclare Resolution Open => Accepted As Marked
2022-03-24 16:01 geoffclare Tag Attached: tc3-2008
2022-05-19 08:41 geoffclare Status Resolved => Applied
2024-06-11 09:07 agadmin Status Applied => Closed