Skip to content

# parsing inhibits use of some commands #6335

Closed
@Lord-Valen

Description

Describe the bug

This is a blocker for nix users. # is used to indicate comments in nushell but some commands use it.
For example with nix-commands you might want to:

nix run nixpkgs#cowsay "I'm a cow!"

Or:

nix profile install nixpkgs#cowsay

But nushell renders this useless as everything after # is a comment.

How to reproduce

  1. Be using nushell
  2. Have nix installed
  3. Have nix-commands enabled
  4. nix run nixpkgs#<somePackage>

Expected behavior

I expected nu to interpret # as part of the command if there is not whitespace in front.

Screenshots

image

Configuration

key value
version 0.65.0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.62.1
cargo_version cargo 1.62.0
pkg_version 0.65.0
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    Staleused for marking issues and prs as staleengine-rIssue related to the upcoming engine refactorparserIssues related to parsing

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions