Skip to content

Syntax to run specific command as root #17234

@qwerlkjasdf

Description

@qwerlkjasdf

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

For now, it’s impossible to run a specific command in the middle of a pipeline as root (sudo nu -c will convert output to string). It would be cool to have a standardized way -- or some syntax sugar -- to do this.

Describe the solution you'd like

something like: @root or root { }. Or maybe add flag to all commands --as-root

Describe alternatives you've considered

No response

Additional context and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions