mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +01: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
@ -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 New Issue
Block a user