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

Tee and StdOut modes seem to have no effect #6

Open
ferm10n opened this issue Aug 17, 2020 · 0 comments
Open

Tee and StdOut modes seem to have no effect #6

ferm10n opened this issue Aug 17, 2020 · 0 comments

Comments

@ferm10n
Copy link

ferm10n commented Aug 17, 2020

When running with Deno 1.3.0, the Tee and StdOut modes seem to have no effect.

import { exec, OutputMode } from "https://deno.land/x/[email protected]/mod.ts";

const p1 = await exec('bash -c echo one && sleep 1 && echo two', { output: OutputMode.Tee }); // displays nothing
console.log(await p1.output); // displays nothing
const p2 = await exec('bash -c echo one && sleep 1 && echo two', { output: OutputMode.StdOut }); // displays nothing
console.log(await p2.output); // displays nothing

Commands starting with bash -c ... seem to have an impact. Running something simple, like exec('echo hello', { output: OutputMode.StdOut }); works as expected. So does this command bash --help, so it's probably not related to calling bash itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant