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

Handling environment for multiline cmds #262

Open
zuzuleinen opened this issue Nov 1, 2022 · 0 comments
Open

Handling environment for multiline cmds #262

zuzuleinen opened this issue Nov 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@zuzuleinen
Copy link
Contributor

zuzuleinen commented Nov 1, 2022

"I got a bit confused by the outcome of this command in bob. From a users perspective I would assume both outputs to be "test". But all defined variables are reset between lines." - feedback from Daniel

unknown

Other examples

Running bob build with bellow bobfile we notice that FOO is not available in the build cmd

build:
  build:
    cmd: 
      echo $FOO
    dependsOn:
      - changer
  changer:
    cmd: export FOO="hello"
build:
  build:
    cmd: |
      export FOO="hello"
      echo $FOO

Todo

Discuss what needs to be done and apply a fix if nedeed.

@zuzuleinen zuzuleinen added the enhancement New feature or request label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant