nushell/tests
YizhePKU 52d99cc60c
Change environment variables to be case-preserving (#12701)
This PR changes `$env` to be **case-preserving** instead of
case-sensitive. That is, it preserves the case of the environment
variable when it is first assigned, but subsequent retrieval and update
ignores the case.

Notably, both `$env.PATH` and `$env.Path` can now be used to read or set
the environment variable, but child processes will always see the
correct case based on the platform.

Fixes #11268.

---

This feature was surprising simple to implement, because most of the
infrastructure to support case-insensitive cell path access already
exists. The `get` command extracts data using a cell path in a
case-insensitive way (!), but accepts a `--sensitive` flag. (I think
this should be flipped around?)
2024-05-01 17:22:34 -05:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ Bump crate-ci/typos and fix typos (#12381) 2024-04-04 09:59:21 +02:00
eval Exit early when encountering parsing errors (#10213) 2023-09-05 14:36:37 +02:00
fixtures Msgpack commands (#12664) 2024-04-26 06:23:16 -05:00
hooks Fix hooks on 0.92.0 (#12383) 2024-04-04 09:25:54 +02:00
modules Evaluate string interpolation at parse time (#11562) 2024-01-22 09:13:48 +02:00
overlays Fix overlay_use_main_not_exported hanging when an external spam command exists (#11261) 2023-12-08 06:08:38 -06:00
parsing Avoid panic when pipe a variable to a custom command which have recursive call (#12491) 2024-04-23 06:10:35 +08:00
path ls, rm, cp, open, touch, mkdir: Don't expand tilde if input path is quoted string or a variable. (#12232) 2024-03-25 10:08:38 +08:00
plugin_persistence Add a bit more delay before ps calls in plugin persistence tests (#12673) 2024-04-26 06:24:57 -05:00
plugins Rename plugin cache file ⇒ plugin registry file (#12634) 2024-04-24 17:40:39 -05:00
scope Remove the Value::Block case (#12582) 2024-04-21 07:03:33 +02:00
shell Change environment variables to be case-preserving (#12701) 2024-05-01 17:22:34 -05:00
main.rs Keep plugins persistently running in the background (#12064) 2024-03-09 17:10:22 -06:00