If we have a script that accepts multiple arguments, the arguments get passed down to zopen-config.
run.sh:
#!/bin/env sh
. /home/itodoro/zopen/etc/zopen-config
./run.sh bla
Error. Unknown parameter 'bla' passed to zopen-config.
Adding set -- before the . /home/itodoro/zopen/etc/zopen-config resolved it. We could document this.
Alternatively, we could avoid printing an error in zopen-config.
Related metaport issue: https://github.com/ZOSOpenTools/metaport/issues/56
If we have a script that accepts multiple arguments, the arguments get passed down to zopen-config.
run.sh:
Adding
set --
before the. /home/itodoro/zopen/etc/zopen-config
resolved it. We could document this. Alternatively, we could avoid printing an error in zopen-config.Not sure if there are better ways. For now, I'll add
set --
in https://github.com/ZOSOpenTools/metaport/blob/main/tests/zopen_check_basic_install#L32-L34