On Sun, 17 Nov 2024 18:25:47 +0100, Andreas Kähäri <[email protected]> wrote: > > A the final right curly brace of a compound command must be preceeded by > a command terminator, most commonly a newline or a semi-colon. This is > what causes the syntax error in the script. > > An additional issue is that your login function would call itself, > causing an infinite recursion. To prevent this, call "login" as > "command login" in the function body. >
This is minimized reproducer of syntax error which was discovered by kn@ when he review my port of acme.sh. The same applies for https://marc.info/?l=openbsd-bugs&m=173186456912827&w=2 -- wbr, Kirill
