WindSoilder ba4723cc9f
Support variables/interpolation in o>, e>, o+e> redirect (#9747)
# Description
Fixes:  #8517
Fixes: #9246
Fixes: #9709
Relative: #9723


## About the change
Before the pr, nushell only parse redirection target as a string(through
`parse_string` call).
In the pr, I'm trying to make the value more generic(using `parse_value`
with `SyntaxShape::Any`)

And during eval stage, we guard it to only eval `String`,
`StringInterpolation`, `FullCellPath`, `FilePath`, so other type of
redirection target like `1ms` won't be permitted.

# User-Facing Changes

After the pr: redirection support something like the following:
1. `let a = "x"; cat toolkit.nu o> $a`
2. `let a = "x"; cat toolkit.nu o> $"($a).txt"`
3. `cat toolkit.nu out> ("~/a.txt" | path expand)`
2023-07-20 13:56:46 +02:00
..
2022-11-22 16:58:11 -08:00
2023-07-14 15:20:35 +12:00
2022-12-22 00:33:26 +02:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-07-14 15:20:35 +12:00
2023-07-14 15:20:35 +12:00
2023-03-15 18:54:55 +13:00
2023-04-28 13:25:44 +02:00
2023-07-14 15:20:35 +12:00
2023-03-28 12:40:29 -07:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-07-14 15:20:35 +12:00
2023-04-28 13:25:44 +02:00
2023-03-15 18:54:55 +13:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-03-15 18:54:55 +13:00