View Issue Details

IDProjectCategoryView StatusLast Update
0001792Issue 8 draftsShell and Utilitiespublic2024-01-22 17:16
ReporterDon Cragun Assigned To 
PrioritynormalSeverityCommentTypeClarification Requested
Status ResolvedResolutionAccepted As Marked 
Product VersionDraft 3 
NameDon Cragun
Organization
User Reference
Sectionfind utility example 7
Page Number2924
Line Number97746-97749
Final Accepted Textsee 0001792:0006635
Summary0001792: Example 7 needs to use find's -H option
DescriptionThis issue was originally raised by Stéphane Chazelas in 0001776, but was not addressed in the resolution to that bug.

With -L/-H, the behaviour is consistent across implementations as stat() is performed on all files.

In any case, the example at line 97747 is incorrect without -H/-L as test's -nt compares files after symlink resolution (also note that the behaviour varies across test implementations when operand cannot be stat()ed).
Desired ActionFix the example at line 97747 to use -H, and maybe add a "provided both file1 and file2 are accessible".
Tagstc1-2024

Relationships

child of 0001776 Closed find -newer any symlinks 

Activities

nick

2024-01-22 17:15

manager   bugnote:0006635

Make the changes suggested, including the addition of "provided both file1 and file2 are accessible" (add after example).

Issue History

Date Modified Username Field Change
2023-12-18 18:40 Don Cragun New Issue
2023-12-18 18:40 Don Cragun Name => Don Cragun
2023-12-18 18:40 Don Cragun Section => find utility example 7
2023-12-18 18:40 Don Cragun Page Number => 2924
2023-12-18 18:40 Don Cragun Line Number => 97746-97749
2023-12-18 18:45 Don Cragun Relationship added child of 0001776
2024-01-22 17:15 nick Note Added: 0006635
2024-01-22 17:16 nick Final Accepted Text => see 0001792:0006635
2024-01-22 17:16 nick Status New => Resolved
2024-01-22 17:16 nick Resolution Open => Accepted As Marked
2024-01-22 17:17 nick Tag Attached: tc1-2024