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
## Our set of commands is evolving [[toc](#table-of-content)]
84
-
As usual, new release rhyms with changes to commands!
85
96
86
97
### New commands [[toc](#table-of-content)]
87
98
### Changes to existing commands [[toc](#table-of-content)]
99
+
100
+
#### `with-env`[[toc](#table-of-content)]
101
+
102
+
::: warning Breaking change
103
+
See a full overview of the [breaking changes](#breaking-changes-toc)
104
+
:::
105
+
106
+
The enviroment variable list form of `with-env` is now deprecated aftter [#12523](https://github.com/nushell/nushell/pull/12523):
107
+
```nushell
108
+
with-env [X Y W Z] { $env.X }
109
+
```
110
+
111
+
Instead, one should use the record form:
112
+
```nushell
113
+
with-env { X: 'Y', W: 'Z' } { $env.X }
114
+
```
115
+
116
+
Additionally, setting the `PWD` variable through `with-env` is now disallowed.
117
+
118
+
#### `load-env`[[toc](#table-of-content)]
119
+
120
+
::: warning Breaking change
121
+
See a full overview of the [breaking changes](#breaking-changes-toc)
122
+
:::
123
+
124
+
With [#12522](https://github.com/nushell/nushell/pull/12522), setting the `PWD` variable through `load-env` is now disallowed.
125
+
126
+
127
+
#### `last`[[toc](#table-of-content)]
128
+
129
+
::: warning Breaking change
130
+
See a full overview of the [breaking changes](#breaking-changes-toc)
131
+
:::
132
+
133
+
To be consistent with `first` and other commands, `last` now errors if the input is empty ([#12478](https://github.com/nushell/nushell/pull/12478)).
134
+
135
+
#### `drop`[[toc](#table-of-content)]
136
+
137
+
::: warning Breaking change
138
+
See a full overview of the [breaking changes](#breaking-changes-toc)
139
+
:::
140
+
141
+
With [#12479](https://github.com/nushell/nushell/pull/12479), `drop` will now error if the number of rows/columns is negative.
142
+
143
+
#### `skip`[[toc](#table-of-content)]
144
+
145
+
::: warning Breaking change
146
+
See a full overview of the [breaking changes](#breaking-changes-toc)
147
+
:::
148
+
149
+
To be consistent with `take` and other commands, `skip` no longer accepts external streams as input ([#12559](https://github.com/nushell/nushell/pull/12559)).
150
+
151
+
#### `group-by`[[toc](#table-of-content)]
152
+
153
+
::: warning Breaking change
154
+
See a full overview of the [breaking changes](#breaking-changes-toc)
155
+
:::
156
+
157
+
If a closure was used as the grouper for `group-by`, then errors inside the closure would previously be ignored. Instead, `group-by` would put the row/item under the `error` group.
158
+
With [#12508](https://github.com/nushell/nushell/pull/12508), errors are no longer ignored and will immediately be bubbled up.
159
+
160
+
#### `timeit`[[toc](#table-of-content)]
161
+
162
+
::: warning Breaking change
163
+
See a full overview of the [breaking changes](#breaking-changes-toc)
164
+
:::
165
+
166
+
After [#12465](https://github.com/nushell/nushell/pull/12465), the `timeit` command will no longer capture external command output, instead redirecting output to the terminal/stdio.
167
+
168
+
#### `kill`[[toc](#table-of-content)]
169
+
170
+
::: warning Breaking change
171
+
See a full overview of the [breaking changes](#breaking-changes-toc)
172
+
:::
173
+
174
+
The `kill` command used to return a stream of values in certain cases. In [#12480](https://github.com/nushell/nushell/pull/12480) this was changed so that `kill` now always returns a single value (null or a string).
175
+
176
+
#### `ls`[[toc](#table-of-content)]
177
+
178
+
Instead of a single optional path, the `ls` command now takes a rest argument of paths ([#12327](https://github.com/nushell/nushell/pull/12327)). I.e., you can spread a list into `ls`:
179
+
```nushell
180
+
ls ...[directory1 directory2]
181
+
```
182
+
or simply `ls` multiple directories:
183
+
```nushell
184
+
ls directory1 directory2
185
+
```
186
+
187
+
#### `du`[[toc](#table-of-content)]
188
+
189
+
In the `ls` PR ([#12327](https://github.com/nushell/nushell/pull/12327)), the same changes were also made to `du`. So, `du` now also takes a rest argument of paths.
190
+
191
+
#### `into filesize`[[toc](#table-of-content)]
192
+
193
+
Thanks to [@singh-priyank](https://github.com/singh-priyank) in [#12443](https://github.com/nushell/nushell/pull/12443), `into filesize` can now parse negative filesizes from strings.
194
+
195
+
#### `explain`[[toc](#table-of-content)]
196
+
197
+
With [#12432](https://github.com/nushell/nushell/pull/12432), the `type` column returned from `explain` should no longer contain `string` for every row.
0 commit comments