NetBSD/usr.sbin/certctl
riastradh fa5a04837c certctl(8): Pacify formal POSIX sh syntax.
According to POSIX 2018, the syntax between `then' and `elif' and
`fi' must be a _non-empty_ list of commands:

compound_list    : linebreak term
                 | linebreak term separator
                 ;
...
if_clause        : If compound_list Then compound_list else_part Fi
                 | If compound_list Then compound_list           Fi
                 ;
else_part        : Elif compound_list Then compound_list
                 | Elif compound_list Then compound_list else_part
                 | Else compound_list
                 ;

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02

NetBSD's sh(1) currently doesn't enforce this and allows an empty
sequence of commands, but let's not rely on that nonstandard quirk.

Noted in PR 57997.
2024-03-04 20:37:31 +00:00
..
Makefile certctl(8): Install certs.conf in /usr/share/examples too. 2023-09-03 18:31:01 +00:00
certctl.8 certctl(8): Reword various things in an attempt to clarify. 2023-10-11 15:28:05 +00:00
certctl.sh certctl(8): Pacify formal POSIX sh syntax. 2024-03-04 20:37:31 +00:00
certs.conf