View Issue Details

IDProjectCategoryView StatusLast Update
00019391003.1(2024)/Issue8Shell and Utilitiespublic2025-09-01 09:27
Reportersteffen Assigned To 
PrioritynormalSeverityEditorialTypeEnhancement Request
Status ResolvedResolutionAccepted As Marked 
Namesteffen
Organization
User Reference
Sectionfind
Page Number2942
Line Number98247-9
Interp Status---
Final Accepted Text0001939:0007238
Summary0001939: find: -perm: add / modifier
DescriptionGNU find, busybox find, FreeBSD find, they all support the (+ and) / modifier to the -perm primary, defined as "primary evaluates to true if any of the bits in the mode are set in the file’s mode bits".
The implementation is easy (the "-" modifier is standardized in POSIX for long, and supported by all implementations), and it seems to be needed at times.
Desired ActionOn page 2942, line 98247-9, change

  if onum is prefixed by a <hyphen-minus>, the
  primary shall evaluate as true if at least all of the bits specified in onum are set.
  In both cases, the behavior is unspecified when onum exceeds 07777.
 
to

  if onum is prefixed by a <hyphen-minus>, the
  primary shall evaluate as true if at least all of the bits specified in onum are set;
  if it is prefixed with <slash>, the primary shall evaluate to true of any of the bits are set.
  In all three cases, the behavior is unspecified when onum exceeds 07777.
Tagsissue9

Activities

geoffclare

2025-08-28 15:35

manager   bugnote:0007238

Last edited: 2025-09-01 09:27

On page 2942, line 98242-3, change
Otherwise, if mode is prefixed by a <hyphen-minus>, the primary shall evaluate as true if at least all the bits in the resulting template are set in the file permission bits.

to
Otherwise, if mode is prefixed by a <hyphen-minus>, the primary shall evaluate as true if at least all the bits in the resulting template are set in the file permission bits; if it is prefixed by a <slash>, the primary shall evaluate to true if any of the bits are set.


On page 2942, line 98247-9, change
if onum is prefixed by a <hyphen-minus>, the primary shall evaluate as true if at least all of the bits specified in onum are set. In both cases, the behavior is unspecified when onum exceeds 07777.

to
if onum is prefixed by a <hyphen-minus>, the primary shall evaluate as true if at least all of the bits specified in onum are set; if it is prefixed by a <slash>, the primary shall evaluate to true if any of the bits are set. In all three cases, the behavior is unspecified when onum exceeds 07777.

Issue History

Date Modified Username Field Change
2025-08-14 22:29 steffen New Issue
2025-08-28 15:35 geoffclare Note Added: 0007238
2025-08-28 15:36 geoffclare Status New => Resolved
2025-08-28 15:36 geoffclare Resolution Open => Accepted As Marked
2025-08-28 15:36 geoffclare Interp Status => ---
2025-08-28 15:36 geoffclare Final Accepted Text => 0001939:0007238
2025-08-28 15:36 geoffclare Tag Attached: issue9
2025-09-01 09:27 geoffclare Note Edited: 0007238