Skip to content

string with escape doesn't work for external command #6559

@WindSoilder

Description

@WindSoilder

Describe the bug

When pass string to external command, escape sequence seems not working.

Here is a comment contains a extra usage example #6420 (comment), reported by @evelant

How to reproduce

  1. ^echo "\"abcd"
  2. Nu gives us \"abcd

Expected behavior

Nu should show "abcd rather than \"abcd

Screenshots

No response

Configuration

key value
version 0.68.2
branch
commit_hash d082124
build_os macos-x86_64
build_target x86_64-apple-darwin
rust_version rustc 1.63.0 (4b91a6ea7 2022-08-08)
rust_channel stable-x86_64-apple-darwin
cargo_version cargo 1.63.0 (fd9c4297c 2022-07-01)
pkg_version 0.68.2
build_time 2022-09-13 10:19:00 +08:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins

It also happened on 0.67

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:quoting-expansionIssues related to string quoting, interpolation, and expansion of variable or glob patterns

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions