bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find: print trailing slash for directories


From: Fourhundred Thecat
Subject: Re: find: print trailing slash for directories
Date: Sun, 7 Aug 2022 15:47:24 +0200

> On 2022-08-07 12:49, Bernhard Voelker wrote:
On 8/6/22 09:20, Fourhundred Thecat wrote:> how difficult would it be to patch 
find, to print trailing slash for
> find \( -type d -printf '%p/\n' \) -or \( -print \)

thank you, but this solution is quite tedious to type, especially when
already having a complicated search construct (ie combination with
-prune). And I don't see how I could create an alias for this.

a) find(1) is a tool with looong history and many scripts rely on its behavior,
b) compatibility with other implementations, and
c) the POSIX specification

thank you, I appreciate the explanation.
For my personal use, I would prefer having trailing slash after
directories by default, even if that breaks some pure idea of POSIX
standard compatibility

Could somebody please advise, if there is some easy way to patch this
myself?

thank you



reply via email to

[Prev in Thread] Current Thread [Next in Thread]