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

Release notes for 0.94.0 #1378

Merged
merged 5 commits into from
May 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Edit 0.94.0 release notes (#1415)
* Fix usages of `CWD` to `PWD`

* Fix typos and some rewording
  • Loading branch information
IanManske committed May 28, 2024
commit 93631c6232ee3b81b88b2e9ede9f481631dfb268
20 changes: 10 additions & 10 deletions blog/2024-05-28-nushell_0_94_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ As part of this release, we also publish a set of optional plugins you can insta
# Table of content

- [_Themes of this release / New features_](#themes-of-this-release-new-features-toc)
- [_Fixing path and CWD handling_](#fixing-path-and-cwd-handling-toc)
- [_Fixing path and PWD handling_](#fixing-path-and-pwd-handling-toc)
- [_Case-preserving environment_](#case-preserving-environment-toc)
- [_Streaming all the things_](#streaming-all-the-things-toc)
- [_New language feature: raw strings_](#new-language-feature-raw-strings-toc)
Expand Down Expand Up @@ -50,7 +50,7 @@ As part of this release, we also publish a set of optional plugins you can insta
- [_`from nuon` and `to nuon`_](#from-nuon-and-to-nuon-toc)
- [_`save`_](#save-toc)
- [_`hide-env`_](#hide-env-toc)
- [_CWD fixes_](#cwd-fixes-toc)
- [_PWD fixes_](#pwd-fixes-toc)
- [_`nu-highlight`_](#nu-highlight-toc)
- [_`into sqlite`_](#into-sqlite-toc)
- [_`stor insert`_](#stor-insert-toc)
Expand All @@ -71,9 +71,9 @@ As part of this release, we also publish a set of optional plugins you can insta

# Themes of this release / New features [[toc](#table-of-content)]

## Fixing path and CWD handling [[toc](#table-of-content)]
## Fixing path and PWD handling [[toc](#table-of-content)]

One of our contributors, [@YizhePKU](https://github.com/YizhePKU), has started an effort to refactor how Nushell internally handles the current working directory and paths in general. Namely, Nushell aggressively canonicalizes paths instead of using logical paths which can lead to unintuitive or annoying behavior ([#2175](https://github.com/nushell/nushell/issues/2175)). Thanks to their work, `$env.CWD` and the `pwd` command now support logical paths. With time, we intend to make similar to changes to other commands to make them more intuitive and consistent with the rest of Nushell. Another goal with these changes is to eliminate bugs in commands, as some commands incorrectly use the Nushell process's current working directory instead of `$env.CWD`. So far, the `grid`, `path type`, and `touch --reference` commands have been fixed, and we are aiming to bring more fixes in the next release. We kindly ask for your patience as we rework this part of Nushell, and we would appreciate if you would report any issues you encounter!
One of our contributors, [@YizhePKU](https://github.com/YizhePKU), has started an effort to refactor how Nushell internally handles the current working directory and paths in general. Namely, Nushell aggressively canonicalizes paths instead of using logical paths which can lead to unintuitive or annoying behavior ([#2175](https://github.com/nushell/nushell/issues/2175)). Thanks to their work, `$env.PWD` and the `pwd` command now support logical paths. With time, we intend to make similar to changes to other commands to make them more intuitive and consistent with the rest of Nushell. Another goal with these changes is to eliminate bugs in commands, as some commands incorrectly use the Nushell process's current working directory instead of `$env.PWD`. So far, the `grid`, `path type`, and `touch --reference` commands have been fixed, and we are aiming to bring more fixes in the next release. We kindly ask for your patience as we rework this part of Nushell, and we would appreciate if you would report any issues you encounter!

## Case-preserving environment [[toc](#table-of-content)]

Expand Down Expand Up @@ -156,7 +156,7 @@ shell_integration: {
}
```

This change provides greater granularity, allowing you to disable certain integrations that may cause issues in certain terminals.
This change provides greater granularity, allowing you to disable any integrations that may cause issues in certain terminals.

## Hall of fame [[toc](#table-of-content)]

Expand Down Expand Up @@ -307,7 +307,7 @@ This release changes a bunch of commands to stream where possible ([#12897](http

#### `cd` and `pwd` [[toc](#table-of-content)]

Thanks to [@YizhePKU](https://github.com/YizhePKU) in [#12603](https://github.com/nushell/nushell/pull/12603), the `cd` command now sets the `CWD` to a logical path by default. Instead, there is now a `--physical` flag for `cd` which will canonicalize the path before setting it as the `CWD`. Similarly, `pwd` now has a `--physical` flag to resolve symlinks before reporting the current working directory.
Thanks to [@YizhePKU](https://github.com/YizhePKU) in [#12603](https://github.com/nushell/nushell/pull/12603), the `cd` command now sets `$env.PWD` to a logical path by default. Instead, there is now a `--physical` flag for `cd` which will canonicalize the path before setting it as the `PWD`. Similarly, `pwd` now has a `--physical` flag to resolve symlinks before reporting the current working directory.

#### `collect` [[toc](#table-of-content)]

Expand Down Expand Up @@ -343,17 +343,17 @@ With [#12833](https://github.com/nushell/nushell/pull/12833), custom converters

A long-standing bug with `hide-env` is that it would not hide environment variables from external commands / child processes in certain cases. With [#12901](https://github.com/nushell/nushell/pull/12901), this issue has finally been fixed.

#### CWD fixes [[toc](#table-of-content)]
#### PWD fixes [[toc](#table-of-content)]

Some commands are incorrectly using the current working directory of the shell process, instead of the internal `$env.CWD` tracked in the engine state. This release fixes a few of these commands:
Some commands are incorrectly using the current working directory of the shell process, instead of the internal `$env.PWD` tracked in the engine state. This release fixes a few of these commands:

- `path type` ([#12975](https://github.com/nushell/nushell/pull/12975))
- `touch --reference` ([#12976](https://github.com/nushell/nushell/pull/12976))
- `grid` ([#12947](https://github.com/nushell/nushell/pull/12947))

#### `nu-highlight` [[toc](#table-of-content)]

`nu-highlight` has received two bug fixes. Namely, highlight `not` has been fixed ([#12815](https://github.com/nushell/nushell/pull/12815)) and extra output when highlighting list spreads has been fixed ([#12793](https://github.com/nushell/nushell/pull/12793)).
`nu-highlight` has received two bug fixes. Namely, highlighting `not` has been fixed ([#12815](https://github.com/nushell/nushell/pull/12815)) and the extra output present when highlighting list spreads has been fixed ([#12793](https://github.com/nushell/nushell/pull/12793)).

#### `into sqlite` [[toc](#table-of-content)]

Expand Down Expand Up @@ -397,7 +397,7 @@ The `lazy make` command has been removed in [#12682](https://github.com/nushell/

#### `describe --collect-lazyrecords` [[toc](#table-of-content)]

The `--collect-lazyrecords` flag has been removed from `describe`, since lazy records have been remove from the language ([#12682](https://github.com/nushell/nushell/pull/12682)).
The `--collect-lazyrecords` flag has been removed from `describe`, since lazy records have been removed from the language ([#12682](https://github.com/nushell/nushell/pull/12682)).

#### List of environment variables support in `with-env` [[toc](#table-of-content)]

Expand Down