mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:05:54 +02:00
require variable names to follow additional restrictions (#6125)
This commit is contained in:
1
crates/nu-command/src/env/let_env.rs
vendored
1
crates/nu-command/src/env/let_env.rs
vendored
@ -33,6 +33,7 @@ impl Command for LetEnv {
|
||||
call: &Call,
|
||||
input: PipelineData,
|
||||
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
|
||||
// TODO: find and require the crossplatform restrictions on environment names
|
||||
let env_var = call.req(engine_state, stack, 0)?;
|
||||
|
||||
let keyword_expr = call
|
||||
|
Reference in New Issue
Block a user