Skip to content

WithEnv + Exec(ForEach) don't work togheter #239

@prochac

Description

@prochac

The script.Exec contains this code

args, err := shell.Fields(cmdLine, nil)
if err != nil {
	return err
}

that already evaluates the env variables, but nil is passed in. So the variables are evaluated as empty string.

https://go.dev/play/p/P73IM0NLNBv

Or am I using it wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions