nushell/crates/nu-command/tests
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
..
commands Make the same file error more likely to appear (#12601) 2024-04-22 01:12:13 +00:00
format_conversions Range refactor (#12405) 2024-04-06 09:04:56 -05:00
main.rs ♻️ rework some help strings (#12306) 2024-03-27 08:41:02 -05:00