uname: `uname -a` omits the GNU/Linux operating-system field

Open Beginner friendly
#522 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
go

Research direction

Start by locating the Go implementation and tests for the uname builtin, then reproduce the reduced command shape uname -a. Compare its output with the expected GNU/Linux result in this issue. Done means the command exits successfully and includes the GNU/Linux operating-system field without changing stderr.

Written by the indexing model from the issue text.

Description

QA

Summary

rshell and the oracle produced different uname uname -a results.

Command

uname -a

Reduced command shape: uname -a

Expected (oracle)

Exit code: 0

stdout:

Linux pshim-control-plane 6.17.0-1016-gcp #17~24.04.1-Ubuntu SMP Fri May  8 07:28:18 UTC 2026 aarch64 GNU/Linux

stderr:

(empty)

Actual (rshell)

Exit code: 0

stdout:

Linux pshim-control-plane 6.17.0-1016-gcp #17~24.04.1-Ubuntu SMP Fri May  8 07:28:18 UTC 2026 aarch64

stderr:

(empty)

Why This Matters

The QA run observed this command shape in 44 invocations across 44 scenarios.

QA provenance
  • QA run id: run-20260603t182134z-uname
  • Target builtin: uname
  • Rshell commit/version: unknown
  • Example invocation: inv-20260603T183230.278225681Z-855a081a
  • Observed invocations: 44
  • Scenario count: 44
  • Differing dimension: stdout
  • Behavior cluster: uname-unexpected-stdout:uname -a
Dominant language
Go
Stars
31
Forks
3
Avg merge
1d 12h
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataDog/rshell

All issues in DataDog/rshell

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.