nushell / nushell/nushell

`which` without `--all` should return record

Open
#9,635 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

category:enhancement
Dominant language
Rust
Stars
40.5k
Forks
2.3k
Avg merge
1d 19h
Merged PRs (30d)
85

Description

Related problem

I have to get 0 from which output every time while it obviously always has 1 item except when it's empty

Describe the solution you'd like

Return a record instead of table

Describe alternatives you've considered

No response

Additional context and details

No response

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.

Research direction

Locate the implementation and tests for the which command, then compare its current output with the requested behavior. Verify that which without --all returns a single record when a match exists and preserves empty behavior when there is no match.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.