#include "sh.h" #include #include void print_sequenced(const char* string, bool& state) { if (!state) { putchar(' '); } state = false; fputs(string, stdout); } shell_builtin_t builtin_echo = [](int argc, char** argv) -> Result { bool state = true; for (int i = 1; i < argc; i++) { print_sequenced(argv[i], state); } putchar('\n'); return {}; };