View Issue Details

IDProjectCategoryView StatusLast Update
0001777Issue 8 draftsShell and Utilitiespublic2024-06-11 09:12
Reporterstephane Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted As Marked 
Product VersionDraft 3 
NameStephane Chazelas
Organization
User Reference
Sectionfind utility EXAMPLES
Page Number2923
Line Number97767 and below
Final Accepted TextSee 0001777:0006591.
Summary0001777: inaccuracy in find example 10
DescriptionOn example 10: -size +199999 yields true for files whose size round up to an integer number of 512 byte units is strictly greater than 199999 so that's for files that are 199999*512+1 bytes or larger, not "100000 KiB or larger".
Desired ActionEither change the code to -size +200000 and the text to "for files of size larger than 100000KiB"

or

keep the text and change the code to -size +102399999c or to '(' -size 200000 -o -size +200000 ')' or ! -size -200000
Tagsapplied_after_i8d3, tc3-2008

Relationships

related to 0001259 Closed 1003.1(2016/18)/Issue7+TC2 wrong description for find -atime +7 example 

Activities

stephane

2023-09-29 15:37

reporter   bugnote:0006493

Sorry, those "or to '(' -size 200000 -o -size +200000 ')' or ! -size -200000" are equally wrong, please ignore that part.

stephane

2023-09-29 15:42

reporter   bugnote:0006494

Last edited: 2023-09-29 15:45

Looks like I'm to blame for this issue as my comment on issue:1259 (0001259:0004423) was incorrect (for -mtime, the numbers are rounded down, but for -size, they are rounded up).

So this bug is about reverting the corresponding change in issue:1259

Don Cragun

2023-11-27 16:13

manager   bugnote:0006591

Last edited: 2023-11-27 16:27

Change on P2924 line 97768 (find EXAMPLES):
searches the file hierarchy for files of size 100 000 KiB or larger
to:
searches the file hierarchy for files of size larger than 100 000 KiB

    
Change on P2924, L97770 (find EXAMPLES):
<pr>find / -path /media -prune -o -size +199999 -print</pr>
to:
<pr>find / −path /media −prune −o −size +200000 −print</pr>


Issue History

Date Modified Username Field Change
2023-09-29 15:32 stephane New Issue
2023-09-29 15:32 stephane Name => Stephane Chazelas
2023-09-29 15:32 stephane Section => find utility EXAMPLES
2023-09-29 15:32 stephane Page Number => 2923
2023-09-29 15:32 stephane Line Number => 97767 and below
2023-09-29 15:37 stephane Note Added: 0006493
2023-09-29 15:42 stephane Note Added: 0006494
2023-09-29 15:45 stephane Note Edited: 0006494
2023-11-27 16:12 Don Cragun Status New => Resolved
2023-11-27 16:12 Don Cragun Resolution Open => Accepted As Marked
2023-11-27 16:13 Don Cragun Note Added: 0006591
2023-11-27 16:19 nick Relationship added related to 0001259
2023-11-27 16:27 Don Cragun Note Edited: 0006591
2023-11-27 16:28 Don Cragun Final Accepted Text => See 0001777:0006591.
2023-11-27 16:32 Don Cragun Tag Attached: tc3-2008
2023-12-07 14:12 geoffclare Status Resolved => Applied
2023-12-07 14:12 geoffclare Tag Attached: applied_after_i8d3
2024-06-11 09:12 agadmin Status Applied => Closed