canonical / canonical/multipass

[console] stderr output from exec duplicated into a separate fd (?)

Open
#1,402 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

Somehow stderr output gets duplicated into a separate FD, preventing its redirection into a file.

```
$ mp ls
Name State IPv4 Image
awesome-gemsbok Running 10.213.185.198 Ubuntu 18.04 LTS
$ ssh ubuntu@10.213.185.198 bash -c 'echo stderr >&2; echo stdout' 2>/dev/null
stdout

# compared to

$ multipass exec awesome-gemsbok -- bash -c 'echo stderr >&2; echo stdout' 2>/dev/null
stderr
stdout
$ multipass exec awesome-gemsbok -- bash -c 'echo stderr >&2; echo stdout' >/dev/null
stderr
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the shown multipass exec commands and shell redirections, then trace the console exec handling that forwards stdout and stderr. Done means stderr is suppressed by 2>/dev/null and stdout is suppressed by >/dev/null, matching the ssh behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.