We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In [email protected], it is possible to spawn a subshell with this command
[email protected]
npx [email protected] --eval 'await $`bash`.stdio("inherit", "inherit", "inherit")'
However, since [email protected], this is no longer possible. Running
will not give the user a new shell.
The text was updated successfully, but these errors were encountered:
relates #931
In short, we have 2 3 options:
// preconfiguration await $({stdio: 'stdio'})`bash` // postconfiguration await $({halt: true})`bash`.stdio('inherit', 'inherit', 'inherit').run()
A portion of black magic, which I strongly do not recommend:
import {$, ProcessPromise} from 'zx' const run = ProcessPromise.prototype.run ProcessPromise.prototype.run = function () { setImmediate(run.bind(this)) } await $`echo foo`.stdio('inherit', 'inherit', 'inherit')
Sorry, something went wrong.
Thanks for the workaround. I decided to go with the postconfiguration approach which worked nicely.
No branches or pull requests
In
[email protected]
, it is possible to spawn a subshell with this commandHowever, since
[email protected]
, this is no longer possible. Runningwill not give the user a new shell.
The text was updated successfully, but these errors were encountered: