Giter Site home page Giter Site logo

Comments (5)

paulpflug avatar paulpflug commented on September 3, 2024

I think, this should work:

parallelshell "ENV=3 echo 1"

from parallelshell.

davesnx avatar davesnx commented on September 3, 2024

@paulpflug isn't working, it's the same error.
The spawn is reading ENV=3 as a command, If I have time I will open a PR with the fix

from parallelshell.

paulpflug avatar paulpflug commented on September 3, 2024

basically parallelshell does a sh -c "command"
when I call sh -c "TEST=test env", TEST is there but sh -c "TEST=test echo $TEST" doesn't print anything

seems it is a problem of echo, maybe it computes its own env?

from parallelshell.

davesnx avatar davesnx commented on September 3, 2024

I don't think so... when u call sh -c "ENV" shows all the ENV of the system
Also, when u run parallelshell "TEST=test"throws and error of sh
If you run sh -a => Mark variables which are modified or created for export.

from parallelshell.

paulpflug avatar paulpflug commented on September 3, 2024

"TEST=test" should only work for the following command if you want to
export to ENV then you have to use "export", but parallelshell doesn't
support ENV exchange between different commands.

Am 21. Februar 2016 1:48:50 nachm. schrieb David Sancho
[email protected]:

I don't think so... when u call sh -c "ENV" shows all the ENV of the system
Also, when u run parallelshell "TEST=test"throws and error of sh


Reply to this email directly or view it on GitHub:
#45 (comment)

from parallelshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.