Skip to content

Fix raw strings as external argument - #12817

Merged
WindSoilder merged 4 commits into
nushell:mainfrom
IanManske:raw-string-external
May 9, 2024
Merged

WindSoilder merged 4 commits into
nushell:mainfrom
IanManske:raw-string-external

Conversation

@IanManske

Copy link
Copy Markdown
Member

Description

As discovered by @yizhepku in a comment in #9956, raw strings are not parsed properly when they are used as an argument to an external command. This PR fixes that.

Tests + Formatting

Added a test.

@WindSoilder WindSoilder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The implementation change looks good to me.

But I think it would be good to add another test at higher level:

nu --testbin=cococo r#'asdf'#

@WindSoilder WindSoilder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@WindSoilder
WindSoilder merged commit 70c01bb into nushell:main May 9, 2024
@hustcer hustcer added this to the v0.94.0 milestone May 10, 2024
FilipAndersson245 pushed a commit to FilipAndersson245/nushell that referenced this pull request May 18, 2024
# Description
As discovered by @yizhepku in a
[comment](nushell#9956 (comment))
in nushell#9956, raw strings are not parsed properly when they are used as an
argument to an external command. This PR fixes that.

# Tests + Formatting
Added a test.
@IanManske
IanManske deleted the raw-string-external branch June 23, 2024 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants