Re: find: print trailing slash for directories

Fourhundred Thecat <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
 > 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.