Skip to content

Move uses of trim_quotes to unescape for filenames#5398

Merged
sophiajt merged 2 commits intonushell:mainfrom
sophiajt:trim_quotes_to_unescape
May 1, 2022
Merged

Move uses of trim_quotes to unescape for filenames#5398
sophiajt merged 2 commits intonushell:mainfrom
sophiajt:trim_quotes_to_unescape

Conversation

@sophiajt
Copy link
Copy Markdown
Contributor

@sophiajt sophiajt commented May 1, 2022

Description

This tries to use unescaping wherever we're reading in a filename from the user. This should hopefully fix some of the jankiness around escaping we're seeing on Windows.

Tests

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --all --all-features -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo build; cargo test --all --all-features to check that all the tests pass

@sophiajt sophiajt merged commit 98ab31e into nushell:main May 1, 2022
@sophiajt sophiajt deleted the trim_quotes_to_unescape branch May 1, 2022 18:37
@sophiajt sophiajt mentioned this pull request May 1, 2022
3 tasks
fennewald pushed a commit to fennewald/nushell that referenced this pull request Jun 27, 2022
* Move uses of trim_quotes to unescape for filenames

* Fix Windows tests
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.

1 participant