shell.c 513 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. *
  3. */
  4. #include <assert.h>
  5. #include <stdio.h>
  6. #include <unistd.h>
  7. #include <string.h>
  8. #include <stdlib.h>
  9. #include <errno.h>
  10. #include <sys/types.h>
  11. #include <faux/str.h>
  12. #include <faux/list.h>
  13. #include <klish/kcontext.h>
  14. #include <klish/ksession.h>
  15. // Execute shell script
  16. int shell_shell(kcontext_t *context)
  17. {
  18. const char *script = NULL;
  19. script = kcontext_script(context);
  20. if (faux_str_is_empty(script))
  21. return 0;
  22. // printf("%s", prompt);
  23. // faux_str_free(prompt);
  24. // fflush(stdout);
  25. return 0;
  26. }