nushell/crates/nu-command
Ian Manske 83720a9f30
Make the same file error more likely to appear (#12601)
# Description
When saving to a file we currently try to check if the data source in
the pipeline metadata is the same as the file we are saving to. If so,
we create an error, since reading and writing to a file at the same time
is currently not supported/handled gracefully. However, there are still
a few instances where this error is not properly triggered, and so this
PR attempts to reduce these cases. Inspired by #12599.

# Tests + Formatting
Added a few tests.

# After Submitting
Some commands still do not properly preserve metadata (e.g., `str trim`)
and so prevent us from detecting this error.
2024-04-22 01:12:13 +00:00
..
src Make the same file error more likely to appear (#12601) 2024-04-22 01:12:13 +00:00
tests Make the same file error more likely to appear (#12601) 2024-04-22 01:12:13 +00:00
Cargo.toml create nuon crate from from nuon and to nuon (#12553) 2024-04-19 13:54:16 +02:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00