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:
Jakub Žádník 2022-07-28 21:06:50 +03:00 committed by GitHub
parent e2a21afca8
commit c9d0003818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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