Skip to content

External command parameters get mangled #6399

@panicbit

Description

@panicbit

Describe the bug

External command paramaters get stripped of their outmost single quotes when their prefix contains an =.

How to reproduce

  • ^echo "= 'hi'"
  • ^echo "foo=bar 'hi'"

image

Expected behavior

I expect the parameters do behave the same as with non-external commands:

  • echo "= 'hi'"
  • echo "foo=bar 'hi'"

image

Configuration

key value
version 0.67.1
branch
commit_hash 0afe1e4
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.63.0 (4b91a6ea7 2022-08-08)
rust_channel stable-x86_64-unknown-linux-gnu
cargo_version cargo 1.63.0 (fd9c4297c 2022-07-01)
pkg_version 0.67.1
build_time 2022-08-24 11:35:06 +02:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:external-commandsIssues related to external commandsA: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