I'm not 100% sure how to explain this as it's not my area of expertise and the person that wrote these scripts is not around anymore. Unfortunately, my boss does not want me to post the scripts so I'm not sure how much help can be offered but I thought I'd ask anyway and will answer any questions to the best of my ability
.
We have a few custom jail management scripts that work just fine on FreeBSD 12.1 but do not work after upgrading to FreeBSD 12.2 though I can't find any reason why they would not work. The error given is "1: parameter not set". The scripts all set "-euf" in the shebang line and after experimenting I found that if I add "set +u" at the beginning of the function that's causing the error and then "set -u" at the end of the function everything works fine. Of course I'm not sure if that's actually the proper fix or if it's fixing this one issue but causing others that I'm not noticing.
What really baffles me is why this would work on 12.1 and not 12.2, everything is configured exactly on the 12.2 machine as it is on the 12.1 machines. I've also read over the release notes and can't find any changes that would affect this but, like I said before, I'm not so great with this so could be missing something.
Sorry again for the vague question but any help or tips or guidance would be much appreciated.
Thank you!

We have a few custom jail management scripts that work just fine on FreeBSD 12.1 but do not work after upgrading to FreeBSD 12.2 though I can't find any reason why they would not work. The error given is "1: parameter not set". The scripts all set "-euf" in the shebang line and after experimenting I found that if I add "set +u" at the beginning of the function that's causing the error and then "set -u" at the end of the function everything works fine. Of course I'm not sure if that's actually the proper fix or if it's fixing this one issue but causing others that I'm not noticing.
What really baffles me is why this would work on 12.1 and not 12.2, everything is configured exactly on the 12.2 machine as it is on the 12.1 machines. I've also read over the release notes and can't find any changes that would affect this but, like I said before, I'm not so great with this so could be missing something.
Sorry again for the vague question but any help or tips or guidance would be much appreciated.
Thank you!