From aa0c8b4a9307de32941d47009a72d3ca85528069 Mon Sep 17 00:00:00 2001 From: bernard Date: Tue, 13 Dec 2022 08:08:38 +0800 Subject: [PATCH] [components] fix format issue --- components/finsh/msh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/finsh/msh.c b/components/finsh/msh.c index 59f824f02a..4b06964010 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -342,7 +342,7 @@ static char *_msh_exec_search_path(const char *path, const char *pg_name) *path_buffer = '\0'; } strcat(path_buffer, pg_name); - + if (_msh_lwp_cmd_exists(path_buffer)) { return path_buffer; @@ -447,7 +447,7 @@ int _msh_exec_lwp(int debug, char *cmd, rt_size_t length) goto found_program; } - /* only check these paths when the first argument doesn't contain path + /* only check these paths when the first argument doesn't contain path seperator */ if (strstr(argv[0], "/")) {