diff options
author | Shion Ryuu <shionryuu@outlook.com> | 2023-03-03 16:33:17 +0800 |
---|---|---|
committer | Shion Ryuu <shionryuu@outlook.com> | 2023-03-03 16:33:17 +0800 |
commit | 4512b0a8c935a5de97c608cb735dee17aa701d88 (patch) | |
tree | dc14d0bce6ee09e6f4affb5113532a0ded83059a /lib/stdlib | |
parent | f94ba84645c6b7fce194acdffe43959fceafcf31 (diff) | |
download | erlang-4512b0a8c935a5de97c608cb735dee17aa701d88.tar.gz |
fix return value 'undefined' of v(N) is treated as missing command
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/shell.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl index 37f3088ef1..9f0bc0c811 100644 --- a/lib/stdlib/src/shell.erl +++ b/lib/stdlib/src/shell.erl @@ -482,7 +482,7 @@ expand_expr({call,A,{atom,_,e},[N]}, C) -> end; expand_expr({call,CA,{atom,VA,v},[N]}, C) -> case get_cmd(N, C) of - {_,undefined,_} -> + {undefined,_,_} -> no_command(N); {Ces,_V,CommandN} when is_list(Ces) -> {call,CA,{atom,VA,v},[{integer,VA,CommandN}]} |