Skip to content

nix help command doesn't recognize shell as a subcommand #13431

@opl-

Description

@opl-

Describe the bug

nix help shell tries to gaslight the user into thinking the subcommand doesn't exist:

$ nix help shell
error: Nix has no subcommand 'shell'
Try 'nix --help' for more information.

nix shell --help correctly opens the manual, which calls the command nix env shell, but which then uses nix shell in every single example. Given how often this shorter alias is used, I think it's reasonable to expect nix help shell to show the correct documentation.

Steps To Reproduce

Run nix help shell

Expected behavior

Documentation is shown.

Metadata

nix-env (Nix) 2.28.4

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions