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

Can't get output of morph exec #151

Open
wmertens opened this issue May 10, 2021 · 2 comments
Open

Can't get output of morph exec #151

wmertens opened this issue May 10, 2021 · 2 comments
Labels
help wanted PR very welcome! triaged Discussed in-team, actionable

Comments

@wmertens
Copy link

I'd like to check that I'm connecting to the right host by doing morph exec host.nix hostname, but all the output goes to stderr, and when I do ... 2>&1 there's no output :-(

(Yes I only have 1 host per file)

@wmertens
Copy link
Author

🙈 I wrote 2&>1 instead of 2>&1 so it does go to stderr.

But actually, it would be nice if the output went to stdout.

@johanot
Copy link
Contributor

johanot commented May 11, 2021

I generally agree. But, we have to keep in mind that some tools around morph might depend on the morph-outpath being the only thing to appear on stdout following a build. I think this is why stderr was chosen originally for "everything else", But, of course we can change this if we want. :)

Iff we chose to change the output stream, we should remember to emphasize it in the release note at least.

@srhb srhb added triaged Discussed in-team, actionable help wanted PR very welcome! labels Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted PR very welcome! triaged Discussed in-team, actionable
Projects
None yet
Development

No branches or pull requests

3 participants