Skip to content

fix: env_var with (interpolated) string as value#218

Merged
fdncred merged 1 commit intonushell:mainfrom
blindFS:env_var
Jul 16, 2025
Merged

fix: env_var with (interpolated) string as value#218
fdncred merged 1 commit intonushell:mainfrom
blindFS:env_var

Conversation

@blindFS
Copy link
Contributor

@blindFS blindFS commented Jul 16, 2025

Fixes the parsing error described in blindFS/topiary-nushell#20

Known difference to native nu-parser after the fix:FOO=(bar) baz

  1. error by tree-sitter-nu.
  2. assign a string of '(bar)' (with the parentheses) to env variable FOO in nu

I guess that's a corner case nobody actually cares.

@fdncred fdncred merged commit 6544c43 into nushell:main Jul 16, 2025
4 checks passed
@fdncred
Copy link
Contributor

fdncred commented Jul 16, 2025

kind of a weird scenario to have '(bar)'. of course, nushell would want to evaluate that. in nushell you'd probably have to do char lp and char rp.

@blindFS blindFS deleted the env_var branch July 16, 2025 07:37
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.

2 participants