Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script variables not picked up from shell arithmetic #55

Open
oiffrig opened this issue Aug 2, 2024 · 0 comments
Open

Script variables not picked up from shell arithmetic #55

oiffrig opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oiffrig
Copy link
Collaborator

oiffrig commented Aug 2, 2024

What happened?

PyFlow does not generate exports for variables used only in shell arithmetic expressions. It is quite easily worked around, but still confusing. May be worth either documenting it, or fixing it somehow.

What are the steps to reproduce the bug?

loop_script = """
for (( i = 0; i < NUM_ITER ; i++ )) ; do
    echo $i
done
"""

pf.Task("loop", script=loop_script, variables={"NUM_ITER": 5})

Version

3.2.1

Platform (OS and architecture)

ECMWF HPC

Relevant log output

No response

Accompanying data

No response

Organisation

No response

@oiffrig oiffrig added the bug Something isn't working label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant