Skip to content

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

Closed

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

Activity

  1. added
    A:quoting-expansion
    on Sep 16, 2022
  2. added this to the v0.69 milestone on Sep 17, 2022
  3. added a commit that references this issue on May 23, 2024
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

    A:quoting-expansion

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions