GithubHelp home page GithubHelp logo

Comments (7)

keithamus avatar keithamus commented on July 17, 2024

Hey @andraaspar thanks for the issue.

It looks as though you might need to escape some of those quotes - as I'm not sure Windows would be able to recognise them like that, although I can't be sure.

Try this:

parallelshell "echo foo" "parallelshell \"echo bar\" \"echo baz\""

from parallelshell.

andraaspar avatar andraaspar commented on July 17, 2024

Done, here's the output:

parallelshell "echo foo" "parallelshell \"echo bar\" \"echo baz\""
foo
'\"echo' is not recognized as an internal or external command,
operable program or batch file.
'bar\"' is not recognized as an internal or external command,
operable program or batch file.
`"echo` failed with exit code 1
'\"echo' is not recognized as an internal or external command,
operable program or batch file.
`parallelshell "echo bar" "echo baz"` failed with exit code 1

from parallelshell.

andraaspar avatar andraaspar commented on July 17, 2024

FYI, I have also tried:

parallelshell "echo foo" "parallelshell ^"echo bar^" ^"echo baz^""

Which gives:

foo
'bar' is not recognized as an internal or external command,
operable program or batch file.
'baz' is not recognized as an internal or external command,
operable program or batch file.
`bar echo` failed with exit code 1

from parallelshell.

andraaspar avatar andraaspar commented on July 17, 2024

But "" as an escape sequence seems to work with child_process.exec in addenv-cli. Of course, migrating to child_process.exec may not be trivial.

from parallelshell.

andraaspar avatar andraaspar commented on July 17, 2024

FYI, I have reported this as a Node.js bug.

from parallelshell.

paulpflug avatar paulpflug commented on July 17, 2024

should work with #30

from parallelshell.

andraaspar avatar andraaspar commented on July 17, 2024

It does indeed.

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.