mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
Quickly patch wrong 'export' command name (#6168)
It was looked up as `alias` which explains issue #6167. Proper fix is still needed to enable the -h flag for `export` subcommands.
This commit is contained in:
parent
e2a21afca8
commit
c9d0003818
1 changed files with 1 additions and 1 deletions
|
@ -4790,7 +4790,7 @@ pub fn parse_builtin_commands(
|
|||
b"overlay" => parse_overlay(working_set, &lite_command.parts, expand_aliases_denylist),
|
||||
b"source" => parse_source(working_set, &lite_command.parts, expand_aliases_denylist),
|
||||
b"export" => {
|
||||
if let Some(decl_id) = working_set.find_decl(b"alias", &Type::Any) {
|
||||
if let Some(decl_id) = working_set.find_decl(b"export", &Type::Any) {
|
||||
let parsed_call = parse_internal_call(
|
||||
working_set,
|
||||
lite_command.parts[0],
|
||||
|
|
Loading…
Reference in a new issue