Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable string interpolation for environment shorthand #5463

Merged
merged 1 commit into from
May 7, 2022

Conversation

rgwood
Copy link
Contributor

@rgwood rgwood commented May 7, 2022

Description

This enables string interpolation for the environment variable shorthand syntax.

For example, FOO=$"(123)" $env.FOO now interpolates the string and returns 123. Before this change it returned (123).

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

@fdncred fdncred merged commit 08e495e into nushell:main May 7, 2022
@fdncred
Copy link
Collaborator

fdncred commented May 7, 2022

thanks

fennewald pushed a commit to fennewald/nushell that referenced this pull request Jun 27, 2022
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.

None yet

2 participants