This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 1d7d4fe67efa14af3c1aa53fdb8ab3fdd983b778
Author: fangpeina <[email protected]>
AuthorDate: Wed Jan 28 19:48:25 2026 +0800

    system/nxinit: fix init parser to handle multiple quoted arguments
    
    Fix argument parsing in init_parse_arguments() to properly handle
    multiple quoted arguments like 'echo "arg1" "arg2"' by skipping
    quote characters after processing them.
    
    Signed-off-by: fangpeina <[email protected]>
---
 system/nxinit/parser.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/system/nxinit/parser.c b/system/nxinit/parser.c
index f88b74e69..56e15935c 100644
--- a/system/nxinit/parser.c
+++ b/system/nxinit/parser.c
@@ -82,6 +82,7 @@ int init_parse_arguments(FAR char *buf, bool dup, int argc, 
FAR char **argv)
           if (quote)
             {
               quote = false;
+              buf++;
             }
           else
             {

Reply via email to