For some reason, this function is working properly. The terminal is outputting newbootstrap.sh: 2: Syntax error: "(" unexpected Here is my code (line 2 is function MoveToTarget() {) #!/... Currently, in Ubuntu 22.04 LTS curl is version 7.81.0, and fails in case of unexpected EOF with OpenSSL 3.0.x.

Understanding the Context

The latest curl is 7.88.1, and apparently resolved the issue, though I could not find the exact commit or ticket.