Skip to content

Security Improvement: Have --wrapped custom commands declare environment variables that affect the external command #19456

Open

Description

@bilberry-work

Basics

  • I have done a basic search through the issue tracker to find similar or related issues.
  • I have made myself familiar with the available features of Nushell for the particular area this enhancement request touches.

Related problem

Commands such as patch and BSD's tar are affected by environment variables. It would be highley useful to provide a way for --wrapped custom commands to at least document the affected environment variables. Future improvements to nushell could provide a way to enforce that these are then set or not set, present or not present in the environment, etc.

Environment variables are a superb way to introduce attacks and unexpected results into scripts - this is particularly acute when trying to ensure build reproducibility.

Describe the solution you'd like

No specific thoughts

Describe alternatives you've considered

No specific thoughts

Additional context and details

No specific thoughts

Activity

  1. added
    category:enhancement
    status:needs-triage
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:enhancementstatus:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions