diff options
Diffstat (limited to 'boot/boot.c')
-rw-r--r-- | boot/boot.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/boot.c b/boot/boot.c index dacf9650..234ccd8b 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -318,8 +318,13 @@ boot_script_exec_cmd (void *hook, write (2, path, strlen (path)); for (i = 1; i < argc; ++i) { + int quote = !! index (argv[i], ' ') || !! index (argv[i], '\t'); write (2, " ", 1); + if (quote) + write (2, "\"", 1); write (2, argv[i], strlen (argv[i])); + if (quote) + write (2, "\"", 1); } write (2, "\r\n", 2); |