On Sat, Apr 10, 2021 at 01:14:53PM +0100, SW wrote: > On 10/04/2021 12:29, Hiltjo Posthuma wrote: > > > > It's already documented in the "EXIT STATUS" section, isn't it? > EXIT STATUS > The syspatch utility exits 0 on success, and >0 if an error occurs. > > That doesn't really sound clear to me- it'd not be unreasonable to argue > that listing available patches is successful whether there are some > patches or no patches. > Also, I think in this case it makes sense for the specific exit statuses > for that flag to be next to the flag itself, rather than putting > conditionals in the exit status section.
the man page changed recently (Mon Dec 7 21:19:28 2020) and the EXIT STATUS section has currently the following text: EXIT STATUS The syspatch utility exits 0 on success, and >0 if an error occurs. In particular, 2 indicates that applying patches was requested but no additional patch was installed. see http://man.openbsd.org/syspatch#EXIT_STATUS Thanks. -- Sebastien Marie