Implement passing commandline strings
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 1m37s
Build documentation / build-and-deploy (push) Successful in 1m42s

This commit is contained in:
2026-04-28 19:48:34 +02:00
parent 347fe0a49d
commit 9fbe23024c
9 changed files with 51 additions and 7 deletions

View File

@@ -103,6 +103,10 @@ void app_main(void) {
char printcmdsbuf[4];
char line[1024];
const char* cmdline = get_cmdline();
debug_printf("cmdline=\"%s\"\n", cmdline);
if (env_get(process_get_pgid(), "printcmds", (void*)printcmdsbuf, sizeof(printcmdsbuf)) ==
ST_OK &&
strcmp(printcmdsbuf, "yes") == 0) {