Make let-env work like let (#4389)

* Make let-env work like let

* Fix tests
This commit is contained in:
JT
2022-02-09 13:41:41 -05:00
committed by GitHub
parent 5d18e07b7d
commit fc88a8538b
4 changed files with 14 additions and 6 deletions

View File

@ -20,7 +20,7 @@ impl Command for LetEnv {
.required("var_name", SyntaxShape::String, "variable name")
.required(
"initial_value",
SyntaxShape::Keyword(b"=".to_vec(), Box::new(SyntaxShape::Any)),
SyntaxShape::Keyword(b"=".to_vec(), Box::new(SyntaxShape::Expression)),
"equals sign followed by value",
)
.category(Category::Env)