Re: [PATCH] find: implement -ok

2023-03-28 Thread Denys Vlasenko
On Sun, Jan 29, 2023 at 3:14 AM David Leonard wrote: > Resending patch for 'find -ok'. I re-ran bloatcheck (x86_64). findutils/find.c: In function ‘do_exec’: findutils/find.c:837:12: error: ‘rc’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 837 | return rc == 0; /*

Re: [PATCH] find: implement -ok

2023-01-28 Thread David Leonard
Resending patch for 'find -ok'. I re-ran bloatcheck (x86_64). Subject: [PATCH] find: implement -ok https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html -ok utility_name [argument ...] ; The -ok primary shall be equivalent to -exec, except that the use

[PATCH] find: implement -ok

2022-03-27 Thread David Leonard
Implements POSIX's -ok primary for find. This is the same as -exec, execpt that the user is prompted before running the command. function old new delta do_exec 782 904+122 parse_params