]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: separate the command lookup from the command execution
authorWarner Losh <imp@FreeBSD.org>
Thu, 1 Sep 2022 17:05:42 +0000 (11:05 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 1 Sep 2022 17:08:16 +0000 (11:08 -0600)
commit113dfadd5c8c2b8a566bf4d0e969e1dff62c9e2f
treeb664d2dd965da7dd8b220d5b50e7b59cc3196add
parent991aef97957da8cb1fe5bf6ae4bbce4f8098a734
stand: separate the command lookup from the command execution

Factor out interp_lookup_cmd to search for a command from
interp_builtin_cmd. This simplifies the latter and can be used to expand
lua to ask if a command exists.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D36363
stand/common/interp.c