Skip to content

Script variables not picked up from shell arithmetic #55

Description

@oiffrig

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions