You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also explicitly stops you from repeating the name of a environment variable, which was a potential source of
123
+
bugs.
124
+
125
+
```nushell
126
+
# silently: bar
127
+
with-env [X foo X bar] { $env.X }
128
+
# error
129
+
with-env { X: 'foo', X: 'bar' } { $env.X }
130
+
```
131
+
116
132
Additionally, setting the `PWD` variable through `with-env` is now disallowed.
117
133
118
134
#### `load-env`[[toc](#table-of-content)]
@@ -121,8 +137,7 @@ Additionally, setting the `PWD` variable through `with-env` is now disallowed.
121
137
See a full overview of the [breaking changes](#breaking-changes-toc)
122
138
:::
123
139
124
-
With [#12522](https://github.com/nushell/nushell/pull/12522), setting the `PWD` variable through `load-env` is now disallowed.
125
-
140
+
With [#12522](https://github.com/nushell/nushell/pull/12522), setting the `PWD` variable through `load-env` is now disallowed, both when the record is given as a pipeline input or command argument.
0 commit comments