nushell/crates/nu-protocol/src/ast
Darren Schroeder ef7fbf4bf9
Revert "Allow NU_LIBS_DIR and friends to be const" (#8501)
Reverts nushell/nushell#8310

In anticipation that we may want to revert this PR. I'm starting the
process because of this issue.

This stopped working
```
let-env NU_LIB_DIRS = [
    ($nu.config-path | path dirname | path join 'scripts')
    'C:\Users\username\source\repos\forks\nu_scripts'
    ($nu.config-path | path dirname)
]
```
You have to do this now instead.
```
const NU_LIB_DIRS = [
    'C:\Users\username\AppData\Roaming\nushell\scripts'
    'C:\Users\username\source\repos\forks\nu_scripts'
    'C:\Users\username\AppData\Roaming\nushell'
]
```

In talking with @kubouch, he was saying that the `let-env` version
should keep working. Hopefully it's a small change.
2023-03-17 09:33:24 -05:00
..
block.rs Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
call.rs Revert "Allow NU_LIBS_DIR and friends to be const" (#8501) 2023-03-17 09:33:24 -05:00
cell_path.rs Optional members in cell paths: Attempt 2 (#8379) 2023-03-15 20:50:58 -07:00
expr.rs Make external command substitution works friendly(like fish shell, trailing ending newlines) (#7156) 2022-11-23 16:51:57 +13:00
expression.rs Add logical xor operator (#7242) 2022-11-26 17:02:37 +01:00
import_pattern.rs Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
mod.rs Remove statements, replaced by pipelines (#4482) 2022-02-15 14:31:14 -05:00
operator.rs ++= appendAssign operator (#7346) (#7354) 2022-12-09 11:20:58 -05:00
pipeline.rs explain command (#7957) 2023-02-09 13:59:38 -06:00