Thank you very much for your explanation.
How should I change the failing example to work correctly? I don't know how to terminate a statement with other than ; in this context. This does not work either,
User:~$ ~/AppImages/gimp/GIMP-3.0.4-x86_64.AppImage -i --quit --batch-interpreter=python-fu-eval -b 'a="something"' -b 'if True: print(a);'
batch command executed successfully
batch command experienced a calling error:
Traceback (most recent call last):
File "/tmp/.mount_GIMP-3nIIdNe/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/python-eval/python-eval.py", line 42, in code_eval
exec(code, globals())
File "<string>", line 1, in <module>
NameError: name 'a' is not defined
How should I change the failing example to work correctly? I don't know how to terminate a statement with other than ; in this context. This does not work either,
User:~$ ~/AppImages/gimp/GIMP-3.0.4-x86_64.AppImage -i --quit --batch-interpreter=python-fu-eval -b 'a="something"' -b 'if True: print(a);'
batch command executed successfully
batch command experienced a calling error:
Traceback (most recent call last):
File "/tmp/.mount_GIMP-3nIIdNe/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/python-eval/python-eval.py", line 42, in code_eval
exec(code, globals())
File "<string>", line 1, in <module>
NameError: name 'a' is not defined