require variable names to follow additional restrictions (#6125)

This commit is contained in:
JT
2022-07-27 14:08:54 +12:00
committed by GitHub
parent d42cfab6ef
commit 9695331eed
4 changed files with 133 additions and 19 deletions

View File

@ -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