morph icon indicating copy to clipboard operation
morph copied to clipboard

Can't get output of `morph exec`

Open wmertens opened this issue 4 years ago • 2 comments

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 avatar May 10 '21 15:05 wmertens

:see_no_evil: 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.

wmertens avatar May 11 '21 10:05 wmertens

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.

johanot avatar May 11 '21 10:05 johanot