Skip to content

Use better quoting for commandline args#5271

Merged
sophiajt merged 1 commit intonushell:mainfrom
sophiajt:fix_5175
Apr 21, 2022
Merged

Use better quoting for commandline args#5271
sophiajt merged 1 commit intonushell:mainfrom
sophiajt:fix_5175

Conversation

@sophiajt
Copy link
Copy Markdown
Contributor

@sophiajt sophiajt commented Apr 21, 2022

Description

Fixes the re-quoting we use on commandline args to use backticks instead. Also touches up a few places in the code where raw strings weren't quote-trimmed correctly

fixes #5175

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 96253c6 into nushell:main Apr 21, 2022
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Apr 21, 2022

thanks jt, hopefully this unblocks zoxide.

fennewald pushed a commit to fennewald/nushell that referenced this pull request Jun 27, 2022
@fdncred fdncred mentioned this pull request Jul 28, 2022
6 tasks
@sophiajt sophiajt deleted the fix_5175 branch September 2, 2023 16:11
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.

nu -c "# '" fails

2 participants