ash: fix build failure when command built-in is disabled
authorRon Yorston <rmy@pobox.com>
Thu, 27 Feb 2020 09:50:18 +0000 (09:50 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 30 Apr 2020 14:42:58 +0000 (16:42 +0200)
commitda7a6dbfa5d78e3d5cec5906b402908505d0fcf9
tree447621855bebf9cadd2ce2c47c944060988a87ac
parentd1b75e1842b3e4f61daae2fb8a64d784a553f15c
ash: fix build failure when command built-in is disabled

Since commit 7eb8eecbb (ash: eval: Add assignment built-in support
again) building BusyBox with the 'command' built-in disabled fails.

parse_command_args() only needs to be called when the 'command'
built-in is run.  Which it won't be if it's disabled.

v2: Avoiding infinite loops is good, too.  Thanks, Harald van Dijk.

Reported-by: Deweloper <deweloper@wp.pl>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c